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: bool
Enable 0-RTT for QUIC
require_encryption: bool
Force encryption
connect_timeout: Duration
Connection timeout
keep_alive: Duration
Keep-alive interval
max_message_size: usize
Maximum 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§const fn clone_from(&mut self, source: &Self)
const 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