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) -> AndThenLayer<F>

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,

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

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

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

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

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Instrument for AndThenLayer<F>

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

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T> WithSubscriber for AndThenLayer<F>

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

fn into(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<U> for AndThenLayer<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 AndThenLayer<F> where U: TryFrom<T>,

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