Struct Next
pub struct Next { /* private fields */ }
The remainder of a middleware stack, including the handler.
Implementations
impl Next
async fn run(self, req: Request) -> ResponseExecute the remaining middleware stack.
Trait Implementations
impl Clone for Next
fn clone(&self) -> Self
impl Debug for Next
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Service<Request<Body>> for Next
type Response = Response<Body>;type Error = never;type Future = Pin<Box<dyn Future<Output = Result<<Next as Service<Request<Body>>>::Response, <Next as Service<Request<Body>>>::Error>> + Send>>;fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>fn call(&mut self, req: Request) -> Self::Future
Auto Trait Implementations
impl !RefUnwindSafe for Next
impl !UnwindSafe for Next
impl Freeze for Next
impl Send for Next
impl Sync for Next
impl Unpin for Next
impl UnsafeUnpin for Next
Blanket Implementations
impl<S, R> ServiceExt<R> for Next
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 Next
where
ST: ?Sized,
DT: ?Sized,
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for Next
where
ST: ?Sized,
DT: ?Sized,
impl<T> Any for Next
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Next
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Next
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for Next
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for Next
fn from(t: T) -> TReturns the argument unchanged.
impl<T> FromRef<T> for Next
where
T: Clone,
fn from_ref(input: &T) -> T
impl<T> Instrument for Next
impl<T> Read<Exclusive, BecauseExclusive> for Next
where
T: ?Sized,
impl<T> Same for Next
type Output = T;
impl<T> ToOwned for Next
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T> WithSubscriber for Next
impl<T, Request> ServiceExt<Request> for Next
where
T: Service<Request> + ?Sized,
impl<T, U> Into<U> for Next
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 Next
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for Next
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 Next
where
V: MultiLane<T>,
fn vzip(self) -> V