pub struct ManagerConfig {
pub establish_timeout: Duration,
pub max_concurrent_handshakes: usize,
pub goodbye_timeout: Duration,
}Expand description
Tuning for ConnectionManager.
Fields§
§establish_timeout: DurationDeadline for an inbound connection to complete TLS + WebSocket +
protocol handshake, measured from TCP accept. Peers that stall are
dropped. Default: DEFAULT_ESTABLISH_TIMEOUT.
max_concurrent_handshakes: usizeMaximum number of inbound connections concurrently working through
their handshake. Surplus peers wait in the TCP accept backlog rather
than being rejected. Values below 1 are clamped to 1. Default:
DEFAULT_MAX_CONCURRENT_HANDSHAKES.
goodbye_timeout: DurationDeadline for flushing client/goodbye to a losing, displaced, or
disconnected server. On elapse the connection is torn down without
confirmation — a peer that stops reading would otherwise pin the
flush (and its connection’s tasks and socket) until the OS TCP
timeout. Default: DEFAULT_GOODBYE_TIMEOUT.
Trait Implementations§
Source§impl Clone for ManagerConfig
impl Clone for ManagerConfig
Source§fn clone(&self) -> ManagerConfig
fn clone(&self) -> ManagerConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ManagerConfig
impl Debug for ManagerConfig
Auto Trait Implementations§
impl Freeze for ManagerConfig
impl RefUnwindSafe for ManagerConfig
impl Send for ManagerConfig
impl Sync for ManagerConfig
impl Unpin for ManagerConfig
impl UnsafeUnpin for ManagerConfig
impl UnwindSafe for ManagerConfig
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