Trait jsonrpc_ipc_server::MetaExtractor
source · [−]pub trait MetaExtractor<M: Metadata>: Send + Sync + 'static {
fn extract(&self, context: &RequestContext<'_>) -> M;
}
Expand description
Metadata extractor (per session)
Required methods
fn extract(&self, context: &RequestContext<'_>) -> M
fn extract(&self, context: &RequestContext<'_>) -> M
Extracts metadata from request context