pub trait MetaExtractor<M: Metadata>:
Send
+ Sync
+ 'static {
// Required method
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