Struct MapResponseLayer

struct MapResponseLayer<F> { ... }

A Layer that produces a MapResponse service.

Implementations

impl<F> MapResponseLayer<F>

const fn new(f: F) -> Self

Creates a new MapResponseLayer layer.

impl<F> Freeze for MapResponseLayer<F>

impl<F> RefUnwindSafe for MapResponseLayer<F>

impl<F> Send for MapResponseLayer<F>

impl<F> Sync for MapResponseLayer<F>

impl<F> Unpin for MapResponseLayer<F>

impl<F> UnsafeUnpin for MapResponseLayer<F>

impl<F> UnwindSafe for MapResponseLayer<F>

impl<F: $crate::clone::Clone> Clone for MapResponseLayer<F>

fn clone(self: &Self) -> MapResponseLayer<F>

impl<F: $crate::fmt::Debug> Debug for MapResponseLayer<F>

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

impl<S, F> Layer for MapResponseLayer<F>

fn layer(self: &Self, inner: S) -> <Self as >::Service

impl<T> Any for MapResponseLayer<F>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for MapResponseLayer<F>

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

impl<T> BorrowMut for MapResponseLayer<F>

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

impl<T> CloneToUninit for MapResponseLayer<F>

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

impl<T> From for MapResponseLayer<F>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Instrument for MapResponseLayer<F>

impl<T> ToOwned for MapResponseLayer<F>

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

impl<T> WithSubscriber for MapResponseLayer<F>

impl<T, U> Into for MapResponseLayer<F>

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 MapResponseLayer<F>

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

impl<T, U> TryInto for MapResponseLayer<F>

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