pub struct Session {
pub raw_tx: Sender<String>,
pub id: u64,
}
Available on crate feature
server
only.Expand description
Transports intend to support pub/sub should provide Session
s as metadata.
See websocket implementation for an example.
Fields§
§raw_tx: Sender<String>
§id: u64
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Session
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnwindSafe for Session
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