Struct MapResultLayer
pub struct MapResultLayer<F> { /* private fields */ }
Implementations
impl<F> MapResultLayer<F>
const fn new(f: F) -> SelfCreates a new
MapResultLayerlayer.
Trait Implementations
impl<F: Clone> Clone for MapResultLayer<F>
fn clone(&self) -> MapResultLayer<F>
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,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for MapResultLayer<F>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for MapResultLayer<F>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for MapResultLayer<F>
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for MapResultLayer<F>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Instrument for MapResultLayer<F>
impl<T> ToOwned for MapResultLayer<F>
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T> WithSubscriber for MapResultLayer<F>
impl<T, U> Into<U> for MapResultLayer<F>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for MapResultLayer<F>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for MapResultLayer<F>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>