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