Struct shuttle_next::middleware::FromExtractorLayer
source · pub struct FromExtractorLayer<E, S> { /* private fields */ }Expand description
Layer that applies FromExtractor that runs an extractor and
discards the value.
See from_extractor for more details.
Trait Implementations§
source§impl<E, S> Clone for FromExtractorLayer<E, S>where
S: Clone,
impl<E, S> Clone for FromExtractorLayer<E, S>where S: Clone,
source§fn clone(&self) -> FromExtractorLayer<E, S>
fn clone(&self) -> FromExtractorLayer<E, S>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<E, S> Debug for FromExtractorLayer<E, S>where
S: Debug,
impl<E, S> Debug for FromExtractorLayer<E, S>where S: Debug,
source§impl<E, T, S> Layer<T> for FromExtractorLayer<E, S>where
S: Clone,
impl<E, T, S> Layer<T> for FromExtractorLayer<E, S>where S: Clone,
§type Service = FromExtractor<T, E, S>
type Service = FromExtractor<T, E, S>
The wrapped service
source§fn layer(&self, inner: T) -> <FromExtractorLayer<E, S> as Layer<T>>::Service
fn layer(&self, inner: T) -> <FromExtractorLayer<E, S> as Layer<T>>::Service
Wrap the given service with the middleware, returning a new service
that has been decorated with the middleware.