Struct ThenLayer

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

A Layer that produces a Then service.

Implementations

impl<F> ThenLayer<F>

const fn new(f: F) -> Self

Creates a new ThenLayer layer.

Trait Implementations

impl<F: Clone> Clone for ThenLayer<F>

fn clone(&self) -> Self

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,

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

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

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

impl<T> From<T> for ThenLayer<F>

impl<T> Instrument for ThenLayer<F>

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

impl<T> WithSubscriber for ThenLayer<F>

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

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

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