Struct parity_rpc::v1::extractors::WsExtractor
source · [−]pub struct WsExtractor { /* private fields */ }
Expand description
WebSockets server metadata extractor and request middleware.
Implementations
sourceimpl WsExtractor
impl WsExtractor
Trait Implementations
sourceimpl MetaExtractor<Metadata> for WsExtractor
impl MetaExtractor<Metadata> for WsExtractor
sourcefn extract(&self, req: &RequestContext) -> Metadata
fn extract(&self, req: &RequestContext) -> Metadata
Extract metadata for given session
sourceimpl RequestMiddleware for WsExtractor
impl RequestMiddleware for WsExtractor
sourcefn process(&self, req: &Request) -> MiddlewareAction
fn process(&self, req: &Request) -> MiddlewareAction
Process a request and decide what to do next.
Auto Trait Implementations
impl RefUnwindSafe for WsExtractor
impl Send for WsExtractor
impl Sync for WsExtractor
impl Unpin for WsExtractor
impl UnwindSafe for WsExtractor
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