Struct MapErrLayer

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

A Layer that produces MapErr services.

Implementations

impl<F> MapErrLayer<F>

const fn new(f: F) -> Self

Creates a new MapErrLayer.

Trait Implementations

impl<F: Clone> Clone for MapErrLayer<F>

fn clone(&self) -> Self

impl<F: Debug> Debug for MapErrLayer<F>

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

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

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

Auto Trait Implementations

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

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

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

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

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

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

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

Blanket Implementations

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

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

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

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

impl<T> From<T> for MapErrLayer<F>

impl<T> Instrument for MapErrLayer<F>

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

impl<T> WithSubscriber for MapErrLayer<F>

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

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

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