[][src]Trait jsonrpc_ipc_server::MetaExtractor

pub trait MetaExtractor<M: Metadata>: Send + Sync + 'static {
    fn extract(&self, context: &RequestContext) -> M;
}

Metadata extractor (per session)

Required methods

fn extract(&self, context: &RequestContext) -> M

Extracts metadata from request context

Loading content...

Implementors

impl<M, F> MetaExtractor<M> for F where
    M: Metadata,
    F: Fn(&RequestContext) -> M + Send + Sync + 'static, 
[src]

impl<M: Metadata + Default> MetaExtractor<M> for NoopExtractor[src]

Loading content...