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.