pub struct TransportOptions {
pub enable_0rtt: bool,
pub require_encryption: bool,
pub connect_timeout: Duration,
pub keep_alive: Duration,
pub max_message_size: usize,
}Expand description
Transport configuration options
Fields§
§enable_0rtt: boolEnable 0-RTT for QUIC
require_encryption: boolForce encryption
connect_timeout: DurationConnection timeout
keep_alive: DurationKeep-alive interval
max_message_size: usizeMaximum message size
Trait Implementations§
Source§impl Clone for TransportOptions
impl Clone for TransportOptions
Source§fn clone(&self) -> TransportOptions
fn clone(&self) -> TransportOptions
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 TransportOptions
impl Debug for TransportOptions
Auto Trait Implementations§
impl Freeze for TransportOptions
impl RefUnwindSafe for TransportOptions
impl Send for TransportOptions
impl Sync for TransportOptions
impl Unpin for TransportOptions
impl UnwindSafe for TransportOptions
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