pub struct WsContext {
pub connection_id: String,
pub user_id: Option<i64>,
pub metadata: HashMap<String, String>,
}Fields§
§connection_id: String§user_id: Option<i64>§metadata: HashMap<String, String>Implementations§
Auto Trait Implementations§
impl Freeze for WsContext
impl RefUnwindSafe for WsContext
impl Send for WsContext
impl Sync for WsContext
impl Unpin for WsContext
impl UnsafeUnpin for WsContext
impl UnwindSafe for WsContext
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