Struct LayerFn

struct LayerFn<F> { ... }

A Layer implemented by a closure. See the docs for layer_fn for more details.

Implementations

impl<F> Debug for LayerFn<F>

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

impl<F> Freeze for LayerFn<F>

impl<F> RefUnwindSafe for LayerFn<F>

impl<F> Send for LayerFn<F>

impl<F> Sync for LayerFn<F>

impl<F> Unpin for LayerFn<F>

impl<F> UnsafeUnpin for LayerFn<F>

impl<F> UnwindSafe for LayerFn<F>

impl<F, S, Out> Layer for LayerFn<F>

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

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

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

impl<F: $crate::marker::Copy> Copy for LayerFn<F>

impl<T> Any for LayerFn<F>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for LayerFn<F>

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

impl<T> BorrowMut for LayerFn<F>

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

impl<T> CloneToUninit for LayerFn<F>

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

impl<T> From for LayerFn<F>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for LayerFn<F>

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

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

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

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

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