pub struct MiddlewareOutcome { /* private fields */ }Expand description
The result of one Endpoint-owned middleware step.
Implementations§
Source§impl MiddlewareOutcome
impl MiddlewareOutcome
Sourcepub fn next(context: InvocationContext, request: HandleRequest) -> Self
pub fn next(context: InvocationContext, request: HandleRequest) -> Self
Continues the middleware chain.
Sourcepub fn response(response: HandleResponse) -> Self
pub fn response(response: HandleResponse) -> Self
Stops the middleware chain with an intentional response.
Trait Implementations§
Source§impl Clone for MiddlewareOutcome
impl Clone for MiddlewareOutcome
Source§fn clone(&self) -> MiddlewareOutcome
fn clone(&self) -> MiddlewareOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Freeze for MiddlewareOutcome
impl !RefUnwindSafe for MiddlewareOutcome
impl !Send for MiddlewareOutcome
impl !Sync for MiddlewareOutcome
impl !UnwindSafe for MiddlewareOutcome
impl Unpin for MiddlewareOutcome
impl UnsafeUnpin 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