Extract

Trait Extract 

Source
pub trait Extract:
    Sized
    + Send
    + Sync {
    // Required method
    fn extract(req: &Request<SgBody>) -> Self;
}
Expand description

a marker is some information that can be attached to a request and can be extracted from a request.

Required Methods§

Source

fn extract(req: &Request<SgBody>) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Extract for Method

Source§

fn extract(req: &Request<SgBody>) -> Self

Source§

impl Extract for Uri

Source§

fn extract(req: &Request<SgBody>) -> Self

Source§

impl Extract for Version

Source§

fn extract(req: &Request<SgBody>) -> Self

Source§

impl<T> Extract for Option<T>
where T: OptionalExtract,

Implementors§