Trait jsonrpc_ws_server::MetaExtractor
source · [−]pub trait MetaExtractor<M: Metadata>: Send + Sync + 'static {
fn extract(&self, _context: &RequestContext) -> M;
}
Expand description
Metadata extractor from session data.
Required methods
fn extract(&self, _context: &RequestContext) -> M
fn extract(&self, _context: &RequestContext) -> M
Extract metadata for given session