Struct jsonrpc_ws_server::RequestContext
source · [−]pub struct RequestContext {
pub session_id: SessionId,
pub origin: Option<Origin>,
pub protocols: Vec<String>,
pub out: Sender,
pub executor: TaskExecutor,
}
Expand description
Request context
Fields
session_id: SessionId
Session id
origin: Option<Origin>
Request Origin
protocols: Vec<String>
Requested protocols
out: Sender
Direct channel to send messages to a client.
executor: TaskExecutor
Remote to underlying event loop.
Implementations
sourceimpl RequestContext
impl RequestContext
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for RequestContext
impl Send for RequestContext
impl Sync for RequestContext
impl Unpin for RequestContext
impl !UnwindSafe for RequestContext
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more