pub enum MiddlewareOutcome {
Continue(BootRequest),
Respond(BootResponse),
}Expand description
Result of running a middleware.
Variants§
Continue(BootRequest)
Respond(BootResponse)
Implementations§
Source§impl MiddlewareOutcome
impl MiddlewareOutcome
pub fn next(request: BootRequest) -> Self
pub fn response(response: BootResponse) -> Self
Auto Trait Implementations§
impl Freeze for MiddlewareOutcome
impl RefUnwindSafe for MiddlewareOutcome
impl Send for MiddlewareOutcome
impl Sync for MiddlewareOutcome
impl Unpin for MiddlewareOutcome
impl UnsafeUnpin for MiddlewareOutcome
impl UnwindSafe for MiddlewareOutcome
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