pub struct QuicConfig {
pub max_bi_streams: u64,
pub max_uni_streams: u64,
pub keep_alive_interval: Option<Duration>,
pub idle_timeout: Option<Duration>,
pub enable_datagrams: bool,
pub read_chunk_size: usize,
}Expand description
QUIC configuration.
Fields§
§max_bi_streams: u64Maximum concurrent bidirectional streams.
max_uni_streams: u64Maximum concurrent unidirectional streams.
keep_alive_interval: Option<Duration>Keep-alive interval. None to disable.
idle_timeout: Option<Duration>Idle timeout.
enable_datagrams: boolEnable datagrams.
read_chunk_size: usizeRead chunk size for stream reads (bytes).
Trait Implementations§
Source§impl Clone for QuicConfig
impl Clone for QuicConfig
Source§fn clone(&self) -> QuicConfig
fn clone(&self) -> QuicConfig
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 moreAuto Trait Implementations§
impl Freeze for QuicConfig
impl RefUnwindSafe for QuicConfig
impl Send for QuicConfig
impl Sync for QuicConfig
impl Unpin for QuicConfig
impl UnsafeUnpin for QuicConfig
impl UnwindSafe for QuicConfig
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