Struct Stack
pub struct Stack<Inner, Outer> { /* private fields */ }
Two middlewares chained together.
Implementations
impl<Inner, Outer> Stack<Inner, Outer>
const fn new(inner: Inner, outer: Outer) -> SelfCreate a new
Stack.
Trait Implementations
impl<Inner, Outer> Debug for Stack<Inner, Outer>
where
Inner: Debug,
Outer: Debug,
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<Inner: Clone, Outer: Clone> Clone for Stack<Inner, Outer>
fn clone(&self) -> Self
impl<S, Inner, Outer> Layer<S> for Stack<Inner, Outer>
where
Inner: Layer<S>,
Outer: Layer<Inner::Service>,
type Service = <Outer as Layer<<Inner as Layer<S>>::Service>>::Service;fn layer(&self, service: S) -> Self::Service