Struct ThenLayer
pub struct ThenLayer<F> { /* private fields */ }
Implementations
impl<F> ThenLayer<F>
const fn new(f: F) -> SelfCreates a new
ThenLayerlayer.
Trait Implementations
impl<F: Clone> Clone for ThenLayer<F>
fn clone(&self) -> ThenLayer<F>
impl<F: Debug> Debug for ThenLayer<F>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<S, F> Layer<S> for ThenLayer<F>
where
F: Clone,
type Service = Then<S, F>;fn layer(&self, inner: S) -> Self::Service
Auto Trait Implementations
impl<F> Freeze for ThenLayer<F>
where
F: Freeze,
impl<F> RefUnwindSafe for ThenLayer<F>
where
F: RefUnwindSafe,
impl<F> Send for ThenLayer<F>
where
F: Send,
impl<F> Sync for ThenLayer<F>
where
F: Sync,
impl<F> Unpin for ThenLayer<F>
where
F: Unpin,
impl<F> UnsafeUnpin for ThenLayer<F>
where
F: UnsafeUnpin,
impl<F> UnwindSafe for ThenLayer<F>
where
F: UnwindSafe,
Blanket Implementations
impl<T> Any for ThenLayer<F>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for ThenLayer<F>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for ThenLayer<F>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for ThenLayer<F>
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for ThenLayer<F>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Instrument for ThenLayer<F>
impl<T> ToOwned for ThenLayer<F>
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T> WithSubscriber for ThenLayer<F>
impl<T, U> Into<U> for ThenLayer<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 ThenLayer<F>
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for ThenLayer<F>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>