Trait MetaExtractor

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

Extracts metadata from the HTTP request.

Provided Methods§

Source

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

Read the metadata from the request

Implementors§

Source§

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