Struct FromExtractor
pub struct FromExtractor<T, E, S> { /* private fields */ }
Middleware that runs an extractor and discards the value.
See from_extractor for more details.
Trait Implementations
impl<T, E, B, S> Service<Request<B>> for FromExtractor<T, E, S>
where
E: FromRequestParts<S> + 'static,
B: Send + 'static,
T: Service<Request<B>> + Clone,
T::Response: IntoResponse,
S: Clone + Send + Sync + 'static,
type Response = Response<Body>;type Error = <T as Service<Request<B>>>::Error;type Future = ResponseFuture<B, T, E, S>;fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>fn call(&mut self, req: Request<B>) -> Self::Future
impl<T, E, S> Clone for FromExtractor<T, E, S>
where
T: Clone,
S: Clone,
fn clone(&self) -> Self
impl<T, E, S> Debug for FromExtractor<T, E, S>
where
T: Debug,
S: Debug,
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Auto Trait Implementations
impl<T, E, S> Freeze for FromExtractor<T, E, S>
where
T: Freeze,
S: Freeze,
PhantomData<fn() -> E>: Freeze,
impl<T, E, S> RefUnwindSafe for FromExtractor<T, E, S>
where
T: RefUnwindSafe,
S: RefUnwindSafe,
PhantomData<fn() -> E>: RefUnwindSafe,
impl<T, E, S> Send for FromExtractor<T, E, S>
where
T: Send,
S: Send,
PhantomData<fn() -> E>: Send,
impl<T, E, S> Sync for FromExtractor<T, E, S>
where
T: Sync,
S: Sync,
PhantomData<fn() -> E>: Sync,
impl<T, E, S> Unpin for FromExtractor<T, E, S>
where
T: Unpin,
S: Unpin,
PhantomData<fn() -> E>: Unpin,
impl<T, E, S> UnsafeUnpin for FromExtractor<T, E, S>
where
T: UnsafeUnpin,
S: UnsafeUnpin,
PhantomData<fn() -> E>: UnsafeUnpin,
impl<T, E, S> UnwindSafe for FromExtractor<T, E, S>
where
T: UnwindSafe,
S: UnwindSafe,
PhantomData<fn() -> E>: UnwindSafe,
Blanket Implementations
impl<S, R> ServiceExt<R> for FromExtractor<T, E, S>
where
S: Service<R>,
fn into_make_service(self) -> IntoMakeService<S>fn into_make_service_with_connect_info<C>(self) -> IntoMakeServiceWithConnectInfo<S, C>
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for FromExtractor<T, E, S>
where
ST: ?Sized,
DT: ?Sized,
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for FromExtractor<T, E, S>
where
ST: ?Sized,
DT: ?Sized,
impl<T> Any for FromExtractor<T, E, S>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for FromExtractor<T, E, S>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for FromExtractor<T, E, S>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for FromExtractor<T, E, S>
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for FromExtractor<T, E, S>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> FromRef<T> for FromExtractor<T, E, S>
where
T: Clone,
fn from_ref(input: &T) -> T
impl<T> Instrument for FromExtractor<T, E, S>
impl<T> Read<Exclusive, BecauseExclusive> for FromExtractor<T, E, S>
where
T: ?Sized,
impl<T> Same for FromExtractor<T, E, S>
type Output = T;
impl<T> ToOwned for FromExtractor<T, E, S>
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T> WithSubscriber for FromExtractor<T, E, S>
impl<T, Request> ServiceExt<Request> for FromExtractor<T, E, S>
where
T: Service<Request> + ?Sized,
impl<T, U> Into<U> for FromExtractor<T, E, S>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for FromExtractor<T, E, S>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for FromExtractor<T, E, S>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
impl<V, T> VZip<V> for FromExtractor<T, E, S>
where
V: MultiLane<T>,
fn vzip(self) -> V