pub enum Middleware {
Continue(HttpRequest<'static>),
ShortCircuit(HttpResponse),
}Expand description
Enum representing the outcome of middleware processing.
Variants§
Continue(HttpRequest<'static>)
Continue processing the request, possibly with modifications.
ShortCircuit(HttpResponse)
Short-circuit further processing by immediately returning this response.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Middleware
impl RefUnwindSafe for Middleware
impl Send for Middleware
impl Sync for Middleware
impl Unpin for Middleware
impl UnsafeUnpin for Middleware
impl UnwindSafe for Middleware
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