Struct Layered

struct Layered<L, H, T, S> { ... }

A Service created from a Handler by applying a Tower middleware.

Created with Handler::layer. See that method for more details.

Implementations

impl<H, S, T, L> Handler for Layered<L, H, T, S>

fn call(self: Self, req: Request, state: S) -> <Self as >::Future

impl<H, T> HandlerWithoutStateExt for Layered<L, H, T, S>

fn into_service(self: Self) -> HandlerService<H, T, ()>
fn into_make_service(self: Self) -> IntoMakeService<HandlerService<H, T, ()>>
fn into_make_service_with_connect_info<C>(self: Self) -> IntoMakeServiceWithConnectInfo<HandlerService<H, T, ()>, C>

impl<L, H, T, S> Clone for Layered<L, H, T, S>

fn clone(self: &Self) -> Self

impl<L, H, T, S> Debug for Layered<L, H, T, S>

fn fmt(self: &Self, f: &mut fmt::Formatter<'_>) -> fmt::Result

impl<L, H, T, S> Freeze for Layered<L, H, T, S>

impl<L, H, T, S> RefUnwindSafe for Layered<L, H, T, S>

impl<L, H, T, S> Send for Layered<L, H, T, S>

impl<L, H, T, S> Sync for Layered<L, H, T, S>

impl<L, H, T, S> Unpin for Layered<L, H, T, S>

impl<L, H, T, S> UnwindSafe for Layered<L, H, T, S>

impl<T> Any for Layered<L, H, T, S>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for Layered<L, H, T, S>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for Layered<L, H, T, S>

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for Layered<L, H, T, S>

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for Layered<L, H, T, S>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> FromRef for Layered<L, H, T, S>

fn from_ref(input: &T) -> T

impl<T> Instrument for Layered<L, H, T, S>

impl<T> Same for Layered<L, H, T, S>

impl<T> ToOwned for Layered<L, H, T, S>

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T> WithSubscriber for Layered<L, H, T, S>

impl<T, U> Into for Layered<L, H, T, S>

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for Layered<L, H, T, S>

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for Layered<L, H, T, S>

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl<V, T> VZip for Layered<L, H, T, S>

fn vzip(self: Self) -> V