Struct MapResponseLayer

pub struct MapResponseLayer<F> { /* private fields */ }

A Layer that produces a MapResponse service.

Implementations

impl<F> MapResponseLayer<F>

const fn new(f: F) -> Self

Creates a new MapResponseLayer layer.

Trait Implementations

impl<F: Clone> Clone for MapResponseLayer<F>

fn clone(&self) -> Self

impl<F: Debug> Debug for MapResponseLayer<F>

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

impl<S, F> Layer<S> for MapResponseLayer<F> where F: Clone,

type Service = MapResponse<S, F>;
fn layer(&self, inner: S) -> Self::Service

Auto Trait Implementations

impl<F> Freeze for MapResponseLayer<F> where F: Freeze,

impl<F> RefUnwindSafe for MapResponseLayer<F> where F: RefUnwindSafe,

impl<F> Send for MapResponseLayer<F> where F: Send,

impl<F> Sync for MapResponseLayer<F> where F: Sync,

impl<F> Unpin for MapResponseLayer<F> where F: Unpin,

impl<F> UnsafeUnpin for MapResponseLayer<F> where F: UnsafeUnpin,

impl<F> UnwindSafe for MapResponseLayer<F> where F: UnwindSafe,

Blanket Implementations

impl<T> Any for MapResponseLayer<F> where T: 'static + ?Sized,

impl<T> Borrow<T> for MapResponseLayer<F> where T: ?Sized,

impl<T> BorrowMut<T> for MapResponseLayer<F> where T: ?Sized,

impl<T> CloneToUninit for MapResponseLayer<F> where T: Clone,

impl<T> From<T> for MapResponseLayer<F>

impl<T> Instrument for MapResponseLayer<F>

impl<T> ToOwned for MapResponseLayer<F> where T: Clone,

impl<T> WithSubscriber for MapResponseLayer<F>

impl<T, U> Into<U> for MapResponseLayer<F> where U: From<T>,

impl<T, U> TryFrom<U> for MapResponseLayer<F> where U: Into<T>,

impl<T, U> TryInto<U> for MapResponseLayer<F> where U: TryFrom<T>,