Trait jsonrpc_tcp_server::MetaExtractor
source · pub trait MetaExtractor<M: Metadata>: Send + Sync {
fn extract(&self, context: &RequestContext) -> M;
}
Expand description
Metadata extractor (per session)
Required Methods
sourcefn extract(&self, context: &RequestContext) -> M
fn extract(&self, context: &RequestContext) -> M
Extracts metadata from request context