Struct jsonrpc_utils::pub_sub::Session
source · 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 !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