Struct CommonArgs

Source
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.

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.

Source§

fn with_docopt(docopt: &Docopt) -> Self

Source§

impl Default for CommonArgs

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> ErasedDestructor for T
where T: 'static,