pub struct WsDispatcherConfig {
pub updates_capacity: usize,
pub session_capacity: usize,
}Expand description
Configuration for the dispatcher’s bounded channels.
Fields§
§updates_capacity: usizeCapacity of the per-subscriber update channel. On overflow the
dispatcher emits SessionEvent::Lagged + BookInvalidated and
drops the offending update. Default 4096.
session_capacity: usizeCapacity of the session-event channel. Default 256 — session events are rare and losing one is a correctness hazard, so oversized.
Trait Implementations§
Source§impl Clone for WsDispatcherConfig
impl Clone for WsDispatcherConfig
Source§fn clone(&self) -> WsDispatcherConfig
fn clone(&self) -> WsDispatcherConfig
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 WsDispatcherConfig
impl Debug for WsDispatcherConfig
Source§impl Default for WsDispatcherConfig
impl Default for WsDispatcherConfig
impl Copy for WsDispatcherConfig
Auto Trait Implementations§
impl Freeze for WsDispatcherConfig
impl RefUnwindSafe for WsDispatcherConfig
impl Send for WsDispatcherConfig
impl Sync for WsDispatcherConfig
impl Unpin for WsDispatcherConfig
impl UnsafeUnpin for WsDispatcherConfig
impl UnwindSafe for WsDispatcherConfig
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