Trait jsonrpc_http_server::MetaExtractor[][src]

pub trait MetaExtractor<M: Metadata>: Sync + Send + 'static {
    fn read_metadata(&self, _: &Request<Body>) -> M;
}

Extracts metadata from the HTTP request.

Required methods

fn read_metadata(&self, _: &Request<Body>) -> M[src]

Read the metadata from the request

Loading content...

Implementors

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

Loading content...