Struct AndThenLayer

struct AndThenLayer<F> { ... }

A Layer that produces a AndThen service.

Implementations

impl<F> AndThenLayer<F>

const fn new(f: F) -> Self

Creates a new AndThenLayer layer.

impl<F> Freeze for AndThenLayer<F>

impl<F> RefUnwindSafe for AndThenLayer<F>

impl<F> Send for AndThenLayer<F>

impl<F> Sync for AndThenLayer<F>

impl<F> Unpin for AndThenLayer<F>

impl<F> UnsafeUnpin for AndThenLayer<F>

impl<F> UnwindSafe for AndThenLayer<F>

impl<F: $crate::clone::Clone> Clone for AndThenLayer<F>

fn clone(self: &Self) -> AndThenLayer<F>

impl<F: $crate::fmt::Debug> Debug for AndThenLayer<F>

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

impl<S, F> Layer for AndThenLayer<F>

fn layer(self: &Self, inner: S) -> <Self as >::Service

impl<T> Any for AndThenLayer<F>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for AndThenLayer<F>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for AndThenLayer<F>

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for AndThenLayer<F>

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for AndThenLayer<F>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Instrument for AndThenLayer<F>

impl<T> ToOwned for AndThenLayer<F>

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T> WithSubscriber for AndThenLayer<F>

impl<T, U> Into for AndThenLayer<F>

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for AndThenLayer<F>

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for AndThenLayer<F>

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>