Trait jsonrpc_ipc_server::MetaExtractor[][src]

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[src]

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...