pub struct ServerContext {
pub node: NodeHandle,
pub state: SharedState,
pub ws_broadcast: WsBroadcast,
pub config: CtlConfig,
}Expand description
All context needed by connection handlers.
Fields§
§node: NodeHandle§state: SharedState§ws_broadcast: WsBroadcast§config: CtlConfigAuto Trait Implementations§
impl Freeze for ServerContext
impl RefUnwindSafe for ServerContext
impl Send for ServerContext
impl Sync for ServerContext
impl Unpin for ServerContext
impl UnwindSafe for ServerContext
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