pub struct TransportConfig {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>,
}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 tls: Standard TLS with server certificate verification m-tls: Mutual TLS with client and server certificate verification insecure: Skip server certificate verification (for testing only)
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 (may reduce security)
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] 30 second default recommended by RFC 9308
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]
Trait Implementations§
Source§impl Args for TransportConfig
impl Args for TransportConfig
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 TransportConfig
impl Clone for TransportConfig
Source§fn clone(&self) -> TransportConfig
fn clone(&self) -> TransportConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl CommandFactory for TransportConfig
impl CommandFactory for TransportConfig
Source§impl Debug for TransportConfig
impl Debug for TransportConfig
Source§impl Default for TransportConfig
Available on crate feature transport-quic only.
impl Default for TransportConfig
transport-quic only.Source§impl<'de> Deserialize<'de> for TransportConfig
impl<'de> Deserialize<'de> for TransportConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl FromArgMatches for TransportConfig
impl FromArgMatches for TransportConfig
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.