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

Extracts metadata from the HTTP request.

Required Methods§

source

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

Read the metadata from the request

Implementors§

source§

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