Struct MapResultLayer

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

A Layer that produces a MapResult service.

Implementations

impl<F> MapResultLayer<F>

const fn new(f: F) -> Self

Creates a new MapResultLayer layer.

Trait Implementations

impl<F: Clone> Clone for MapResultLayer<F>

fn clone(&self) -> Self

impl<F: Debug> Debug for MapResultLayer<F>

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

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

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

Auto Trait Implementations

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

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

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

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

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

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

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

Blanket Implementations

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

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

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

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

impl<T> From<T> for MapResultLayer<F>

impl<T> Instrument for MapResultLayer<F>

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

impl<T> WithSubscriber for MapResultLayer<F>

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

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

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