[][src]Trait jsonrpc_tcp_server::MetaExtractor

pub trait MetaExtractor<M: Metadata>: Send + Sync {
    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
[src]

Loading content...