pub struct HubConfig {
pub max_connections: usize,
pub heartbeat_interval_ms: u64,
pub replay_buffer_size: usize,
}Expand description
Configuration for the hub.
Fields§
§max_connections: usizeMaximum concurrent subscriber connections. 0 = unlimited.
heartbeat_interval_ms: u64Heartbeat interval in milliseconds (used by SSE/WS layers above).
replay_buffer_size: usizeMaximum events kept in the replay buffer for Last-Event-ID catchup.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HubConfig
impl RefUnwindSafe for HubConfig
impl Send for HubConfig
impl Sync for HubConfig
impl Unpin for HubConfig
impl UnsafeUnpin for HubConfig
impl UnwindSafe for HubConfig
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