pub struct CommonOpt {Show 14 fields
pub send_buffer_size: u64,
pub recv_buffer_size: u64,
pub conn_stats: bool,
pub keylog: bool,
pub initial_mtu: u16,
pub no_protection: bool,
pub initial_rtt: Option<u64>,
pub ack_frequency: bool,
pub cong_alg: Option<CongestionAlgorithm>,
pub stream_receive_window: Option<u64>,
pub receive_window: Option<u64>,
pub send_window: Option<u64>,
pub max_udp_payload_size: u16,
pub qlog_dir: Option<PathBuf>,
}Fields§
§send_buffer_size: u64Send buffer size in bytes
This can use SI suffixes for sizes. For example, 1M will request 1MiB, 10G will request 10GiB.
recv_buffer_size: u64Receive buffer size in bytes
This can use SI suffixes for sizes. For example, 1M will request 1MiB, 10G will request 10GiB.
conn_stats: boolWhether to print connection statistics
keylog: boolPerform NSS-compatible TLS key logging to the file specified in SSLKEYLOGFILE.
initial_mtu: u16UDP payload size that the network must be capable of carrying
no_protection: boolDisable packet encryption/decryption (for debugging purpose)
initial_rtt: Option<u64>The initial round-trip-time (in msecs)
ack_frequency: boolAck Frequency mode
cong_alg: Option<CongestionAlgorithm>Congestion algorithm to use
stream_receive_window: Option<u64>Maximum number of bytes the peer may transmit without acknowledgement on any one stream before becoming blocked.
This can use SI suffixes for sizes. For example, 1M will limit to 1MiB, 10G will limit to 10GiB.
receive_window: Option<u64>Maximum number of bytes the peer may transmit across all streams of a connection before becoming blocked.
This can use SI suffixes for sizes. For example, 1M will limit to 1MiB, 10G will limit to 10GiB.
send_window: Option<u64>Maximum number of bytes to transmit to a peer without acknowledgment
This can use SI suffixes for sizes. For example, 1M will limit to 1MiB, 10G will limit to 10GiB.
max_udp_payload_size: u16Max UDP payload size in bytes
qlog_dir: Option<PathBuf>qlog output directory
Alternatively you can set the QLOGDIR environment variable.
Implementations§
Source§impl CommonOpt
impl CommonOpt
pub fn build_transport_config(&self, name: &str) -> Result<TransportConfig>
pub fn bind_socket(&self, addr: SocketAddr) -> Result<UdpSocket>
Trait Implementations§
Source§impl Args for CommonOpt
impl Args for CommonOpt
Source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
ArgGroup::id][crate::ArgGroup::id] for this set of argumentsSource§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command] so it can instantiate self via
[FromArgMatches::update_from_arg_matches_mut] Read moreSource§impl FromArgMatches for CommonOpt
impl FromArgMatches for CommonOpt
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Parser for CommonOpt
impl Parser for CommonOpt
§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for CommonOpt
impl RefUnwindSafe for CommonOpt
impl Send for CommonOpt
impl Sync for CommonOpt
impl Unpin for CommonOpt
impl UnwindSafe for CommonOpt
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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