Struct ThenLayer

struct ThenLayer<F> { ... }

A Layer that produces a Then service.

Implementations

impl<F> ThenLayer<F>

const fn new(f: F) -> Self

Creates a new ThenLayer layer.

impl<F> Freeze for ThenLayer<F>

impl<F> RefUnwindSafe for ThenLayer<F>

impl<F> Send for ThenLayer<F>

impl<F> Sync for ThenLayer<F>

impl<F> Unpin for ThenLayer<F>

impl<F> UnsafeUnpin for ThenLayer<F>

impl<F> UnwindSafe for ThenLayer<F>

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

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

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

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

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

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

impl<T> Any for ThenLayer<F>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for ThenLayer<F>

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

impl<T> BorrowMut for ThenLayer<F>

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

impl<T> CloneToUninit for ThenLayer<F>

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

impl<T> From for ThenLayer<F>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Instrument for ThenLayer<F>

impl<T> ToOwned for ThenLayer<F>

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

impl<T> WithSubscriber for ThenLayer<F>

impl<T, U> Into for ThenLayer<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 ThenLayer<F>

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

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

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