Struct LayerFn
pub struct LayerFn<F> { /* private fields */ }
A Layer implemented by a closure. See the docs for layer_fn for more details.
Trait Implementations
impl<F> Debug for LayerFn<F>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<F, S, Out> Layer<S> for LayerFn<F>
where
F: Fn(S) -> Out,
type Service = Out;fn layer(&self, inner: S) -> Self::Service
impl<F: Clone> Clone for LayerFn<F>
fn clone(&self) -> Self