pub struct CommonArgs {Show 22 fields
pub alpns: Vec<&'static [u8]>,
pub max_data: u64,
pub max_window: u64,
pub max_stream_data: u64,
pub max_stream_window: u64,
pub max_streams_bidi: u64,
pub max_streams_uni: u64,
pub idle_timeout: u64,
pub early_data: bool,
pub dump_packet_path: Option<String>,
pub no_grease: bool,
pub cc_algorithm: String,
pub disable_hystart: bool,
pub dgrams_enabled: bool,
pub dgram_count: u64,
pub dgram_data: String,
pub max_active_cids: u64,
pub enable_active_migration: bool,
pub max_field_section_size: Option<u64>,
pub qpack_max_table_capacity: Option<u64>,
pub qpack_blocked_streams: Option<u64>,
pub initial_cwnd_packets: u64,
}
Expand description
Contains commons arguments for creating a quiche QUIC connection.
Fields§
§alpns: Vec<&'static [u8]>
§max_data: u64
§max_window: u64
§max_stream_data: u64
§max_stream_window: u64
§max_streams_bidi: u64
§max_streams_uni: u64
§idle_timeout: u64
§early_data: bool
§dump_packet_path: Option<String>
§no_grease: bool
§cc_algorithm: String
§disable_hystart: bool
§dgrams_enabled: bool
§dgram_count: u64
§dgram_data: String
§max_active_cids: u64
§enable_active_migration: bool
§max_field_section_size: Option<u64>
§qpack_max_table_capacity: Option<u64>
§qpack_blocked_streams: Option<u64>
§initial_cwnd_packets: u64
Trait Implementations§
Source§impl Args for CommonArgs
Creates a new CommonArgs
structure using the provided Docopt
.
impl Args for CommonArgs
Creates a new CommonArgs
structure using the provided Docopt
.
The Docopt
usage String needs to include the following:
–http-version VERSION HTTP version to use. –max-data BYTES Connection-wide flow control limit. –max-window BYTES Connection-wide max receiver window. –max-stream-data BYTES Per-stream flow control limit. –max-stream-window BYTES Per-stream max receiver window. –max-streams-bidi STREAMS Number of allowed concurrent streams. –max-streams-uni STREAMS Number of allowed concurrent streams. –dump-packets PATH Dump the incoming packets in PATH. –no-grease Don’t send GREASE. –cc-algorithm NAME Set a congestion control algorithm. –disable-hystart Disable HyStart++. –dgram-proto PROTO DATAGRAM application protocol. –dgram-count COUNT Number of DATAGRAMs to send. –dgram-data DATA DATAGRAM data to send. –max-active-cids NUM Maximum number of active Connection IDs. –enable-active-migration Enable active connection migration. –max-field-section-size BYTES Max size of uncompressed field section. –qpack-max-table-capacity BYTES Max capacity of dynamic QPACK decoding. –qpack-blocked-streams STREAMS Limit of blocked streams while decoding. –initial-cwnd-packets Size of initial congestion window, in packets.
fn with_docopt(docopt: &Docopt) -> Self
Auto Trait Implementations§
impl Freeze for CommonArgs
impl RefUnwindSafe for CommonArgs
impl Send for CommonArgs
impl Sync for CommonArgs
impl Unpin for CommonArgs
impl UnwindSafe for CommonArgs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more