Struct FromFnLayer

struct FromFnLayer<F, S, T> { ... }

A tower::Layer from an async function.

tower::Layer is used to apply middleware to Router's.

Created with from_fn or from_fn_with_state. See those functions for more details.

Implementations

impl<F, S, T> Clone for FromFnLayer<F, S, T>

fn clone(self: &Self) -> Self

impl<F, S, T> Debug for FromFnLayer<F, S, T>

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

impl<F, S, T> Freeze for FromFnLayer<F, S, T>

impl<F, S, T> RefUnwindSafe for FromFnLayer<F, S, T>

impl<F, S, T> Send for FromFnLayer<F, S, T>

impl<F, S, T> Sync for FromFnLayer<F, S, T>

impl<F, S, T> Unpin for FromFnLayer<F, S, T>

impl<F, S, T> UnsafeUnpin for FromFnLayer<F, S, T>

impl<F, S, T> UnwindSafe for FromFnLayer<F, S, T>

impl<S, I, F, T> Layer for FromFnLayer<F, S, T>

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

impl<T> Any for FromFnLayer<F, S, T>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for FromFnLayer<F, S, T>

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

impl<T> BorrowMut for FromFnLayer<F, S, T>

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

impl<T> CloneToUninit for FromFnLayer<F, S, T>

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

impl<T> From for FromFnLayer<F, S, T>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> FromRef for FromFnLayer<F, S, T>

fn from_ref(input: &T) -> T

impl<T> Instrument for FromFnLayer<F, S, T>

impl<T> Same for FromFnLayer<F, S, T>

impl<T> ToOwned for FromFnLayer<F, S, T>

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

impl<T> WithSubscriber for FromFnLayer<F, S, T>

impl<T, U> Into for FromFnLayer<F, S, T>

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 FromFnLayer<F, S, T>

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

impl<T, U> TryInto for FromFnLayer<F, S, T>

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

impl<V, T> VZip for FromFnLayer<F, S, T>

fn vzip(self: Self) -> V