pub struct CliTransportConfig {Show 13 fields
pub bind: Option<SocketAddr>,
pub server_name: Option<String>,
pub tls_mode: Option<TlsMode>,
pub ca_cert: Option<PathBuf>,
pub client_cert: Option<PathBuf>,
pub client_key: Option<PathBuf>,
pub zero_rtt: Option<bool>,
pub alpn_protocols: Option<Vec<Vec<u8>>>,
pub congestion: Option<Congestion>,
pub cwnd_init: Option<u64>,
pub idle_timeout: Option<u64>,
pub keep_alive: Option<u64>,
pub max_streams: Option<u64>,
}Expand description
CLI-specific transport configuration
Fields§
§bind: Option<SocketAddr>The address to bind for transport
server_name: Option<String>Name of the server to connect (derived from server if not provided)
tls_mode: Option<TlsMode>Set the TLS mode for the connection
ca_cert: Option<PathBuf>Path to the Certificate Authority (CA) certificate file in ‘TLS’ mode, if not provided, the system’s default root certificates are used
client_cert: Option<PathBuf>Path to the client’s TLS certificate for mTLS
client_key: Option<PathBuf>Path to the client’s TLS private key for mTLS
zero_rtt: Option<bool>Enable 0-RTT for faster connection establishment
alpn_protocols: Option<Vec<Vec<u8>>>Application-Layer protocol negotiation (ALPN) protocols [default: h3]
congestion: Option<Congestion>Congestion control algorithm to use (e.g. bbr, cubic, newreno) [default: bbr]
cwnd_init: Option<u64>Initial congestion window size in bytes
idle_timeout: Option<u64>Maximum idle time (in milliseconds) before closing the connection [default: 30000]
keep_alive: Option<u64>Keep-alive interval (in milliseconds) [default: 8000]
max_streams: Option<u64>Maximum number of bidirectional streams that can be open simultaneously [default: 100]
Implementations§
Source§impl CliTransportConfig
impl CliTransportConfig
Sourcepub fn into_transport_config(self) -> TransportConfig
pub fn into_transport_config(self) -> TransportConfig
Convert CLI transport config to internal TransportConfig
Trait Implementations§
Source§impl Args for CliTransportConfig
impl Args for CliTransportConfig
Source§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 Clone for CliTransportConfig
impl Clone for CliTransportConfig
Source§fn clone(&self) -> CliTransportConfig
fn clone(&self) -> CliTransportConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl CommandFactory for CliTransportConfig
impl CommandFactory for CliTransportConfig
Source§impl Debug for CliTransportConfig
impl Debug for CliTransportConfig
Source§impl FromArgMatches for CliTransportConfig
impl FromArgMatches for CliTransportConfig
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.