pub struct TransportConfig {
pub tls_mode: Option<TlsMode>,
pub ca_cert: Option<PathBuf>,
pub tls_cert: Option<PathBuf>,
pub tls_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
Transport configuration for QUIC connections
Fields§
§tls_mode: Option<TlsMode>§ca_cert: Option<PathBuf>§tls_cert: Option<PathBuf>§tls_key: Option<PathBuf>§zero_rtt: Option<bool>§alpn_protocols: Option<Vec<Vec<u8>>>§congestion: Option<Congestion>§cwnd_init: Option<u64>§idle_timeout: Option<u64>§keep_alive: Option<u64>§max_streams: Option<u64>Implementations§
Source§impl TransportConfig
impl TransportConfig
Sourcepub fn alpn_protocols(&self) -> Vec<Vec<u8>>
pub fn alpn_protocols(&self) -> Vec<Vec<u8>>
Get ALPN protocols with default
Sourcepub fn congestion(&self) -> Congestion
pub fn congestion(&self) -> Congestion
Get congestion control with default
Sourcepub fn idle_timeout(&self) -> u64
pub fn idle_timeout(&self) -> u64
Get idle timeout with default (in milliseconds)
Sourcepub fn keep_alive(&self) -> u64
pub fn keep_alive(&self) -> u64
Get keep-alive interval with default (in milliseconds)
Sourcepub fn max_streams(&self) -> u64
pub fn max_streams(&self) -> u64
Get max streams with default
Trait Implementations§
Source§impl Clone for TransportConfig
impl Clone for TransportConfig
Source§fn clone(&self) -> TransportConfig
fn clone(&self) -> TransportConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TransportConfig
impl Debug for TransportConfig
Source§impl Default for TransportConfig
impl Default for TransportConfig
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TransportConfig
impl RefUnwindSafe for TransportConfig
impl Send for TransportConfig
impl Sync for TransportConfig
impl Unpin for TransportConfig
impl UnwindSafe for TransportConfig
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
Mutably borrows from an owned value. Read more