pub struct MiddlewareStack { /* private fields */ }
Expand description
Organizes middleware into a processing pipeline
Implementations§
Source§impl MiddlewareStack
impl MiddlewareStack
Sourcepub fn add<M>(&mut self, middleware: M)where
M: Middleware,
pub fn add<M>(&mut self, middleware: M)where
M: Middleware,
Add another layer to the stack
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MiddlewareStack
impl !RefUnwindSafe for MiddlewareStack
impl Send for MiddlewareStack
impl Sync for MiddlewareStack
impl Unpin for MiddlewareStack
impl !UnwindSafe for MiddlewareStack
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more