#[non_exhaustive]pub struct NetworkConfig {Show 15 fields
pub quic: Option<QuicConfig>,
pub connection_manager_channel_capacity: usize,
pub connectivity_check_interval: Duration,
pub max_frame_size: ByteSize,
pub connect_timeout: Duration,
pub connection_backoff: Duration,
pub max_connection_backoff: Duration,
pub connection_error_delay: Duration,
pub max_concurrent_outstanding_connections: usize,
pub max_concurrent_connections: Option<usize>,
pub active_peers_event_channel_capacity: usize,
pub max_concurrent_requests_per_peer: usize,
pub shutdown_idle_timeout: Duration,
pub enable_0rtt: bool,
pub connection_metrics: Option<ConnectionMetricsLevel>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.quic: Option<QuicConfig>§connection_manager_channel_capacity: usizeDefault: 128.
connectivity_check_interval: DurationDefault: 5 seconds.
max_frame_size: ByteSizeDefault: 8 MiB.
connect_timeout: DurationDefault: 10 seconds.
connection_backoff: DurationDefault: 10 seconds.
max_connection_backoff: DurationDefault: 1 minute.
connection_error_delay: DurationOptimistic guess for some errors that there will be an incoming connection.
Default: 3 seconds.
max_concurrent_outstanding_connections: usizeDefault: 100.
max_concurrent_connections: Option<usize>Default: unlimited.
active_peers_event_channel_capacity: usizeDefault: 128.
max_concurrent_requests_per_peer: usizeMaximum number of concurrent requests (uni and bi streams) allowed from a single peer. When this limit is reached, new incoming streams will be rejected.
Default: 128.
shutdown_idle_timeout: DurationDefault: 1 minute.
enable_0rtt: boolDefault: no.
connection_metrics: Option<ConnectionMetricsLevel>Default: disabled.
Trait Implementations§
Source§impl Clone for NetworkConfig
impl Clone for NetworkConfig
Source§fn clone(&self) -> NetworkConfig
fn clone(&self) -> NetworkConfig
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 NetworkConfig
impl Debug for NetworkConfig
Source§impl Default for NetworkConfig
impl Default for NetworkConfig
Source§impl<'de> Deserialize<'de> for NetworkConfigwhere
NetworkConfig: Default,
impl<'de> Deserialize<'de> for NetworkConfigwhere
NetworkConfig: Default,
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 NetworkConfig
impl RefUnwindSafe for NetworkConfig
impl Send for NetworkConfig
impl Sync for NetworkConfig
impl Unpin for NetworkConfig
impl UnwindSafe for NetworkConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more