Struct ThenLayer
pub struct ThenLayer<F> { /* private fields */ }
Implementations
impl<F> ThenLayer<F>
const fn new(f: F) -> SelfCreates a new
ThenLayerlayer.
Trait Implementations
impl<F: Clone> Clone for ThenLayer<F>
fn clone(&self) -> Self
impl<F: Debug> Debug for ThenLayer<F>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<S, F> Layer<S> for ThenLayer<F>
where
F: Clone,
type Service = Then<S, F>;fn layer(&self, inner: S) -> Self::Service