Trait spacegate_kernel::extractor::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

Object Safety§

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<E> Extract for Option<Extension<E>>
where E: Send + Sync + 'static + Clone,

source§

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

Implementors§

source§

impl<E> Extract for Extension<Option<E>>
where E: Send + Sync + 'static + Clone,