This change adds a .rustfmt.toml that includes ALL supported settings, 12 of which we have overridden to attempt to cater to our own proclivities. rustfmt is checked in the rust-nightly CI job.
46 lines
1016 B
Rust
46 lines
1016 B
Rust
mod buffer;
|
|
mod counts;
|
|
mod flow_control;
|
|
mod prioritize;
|
|
mod recv;
|
|
mod send;
|
|
mod state;
|
|
mod store;
|
|
mod stream;
|
|
mod streams;
|
|
|
|
pub(crate) use self::prioritize::Prioritized;
|
|
pub(crate) use self::streams::{StreamRef, Streams};
|
|
|
|
use self::buffer::Buffer;
|
|
use self::counts::Counts;
|
|
use self::flow_control::FlowControl;
|
|
use self::prioritize::Prioritize;
|
|
use self::recv::Recv;
|
|
use self::send::Send;
|
|
use self::state::State;
|
|
use self::store::{Entry, Store};
|
|
use self::stream::Stream;
|
|
|
|
use error::Reason::*;
|
|
use frame::StreamId;
|
|
use proto::*;
|
|
|
|
use bytes::Bytes;
|
|
use http::{Request, Response};
|
|
|
|
#[derive(Debug)]
|
|
pub struct Config {
|
|
/// Maximum number of remote initiated streams
|
|
pub max_remote_initiated: Option<usize>,
|
|
|
|
/// Initial window size of remote initiated streams
|
|
pub init_remote_window_sz: WindowSize,
|
|
|
|
/// Maximum number of locally initiated streams
|
|
pub max_local_initiated: Option<usize>,
|
|
|
|
/// Initial window size of locally initiated streams
|
|
pub init_local_window_sz: WindowSize,
|
|
}
|