Struct AndThenLayer

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

A Layer that produces a AndThen service.

Implementations

impl<F> AndThenLayer<F>

const fn new(f: F) -> Self

Creates a new AndThenLayer layer.

Trait Implementations

impl<F: Clone> Clone for AndThenLayer<F>

fn clone(&self) -> Self

impl<F: Debug> Debug for AndThenLayer<F>

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

impl<S, F> Layer<S> for AndThenLayer<F> where F: Clone,

type Service = AndThen<S, F>;
fn layer(&self, inner: S) -> Self::Service

Auto Trait Implementations

impl<F> Freeze for AndThenLayer<F> where F: Freeze,

impl<F> RefUnwindSafe for AndThenLayer<F> where F: RefUnwindSafe,

impl<F> Send for AndThenLayer<F> where F: Send,

impl<F> Sync for AndThenLayer<F> where F: Sync,

impl<F> Unpin for AndThenLayer<F> where F: Unpin,

impl<F> UnsafeUnpin for AndThenLayer<F> where F: UnsafeUnpin,

impl<F> UnwindSafe for AndThenLayer<F> where F: UnwindSafe,

Blanket Implementations

impl<T> Any for AndThenLayer<F> where T: 'static + ?Sized,

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

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

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

impl<T> From<T> for AndThenLayer<F>

impl<T> Instrument for AndThenLayer<F>

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

impl<T> WithSubscriber for AndThenLayer<F>

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

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

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