pub enum Flow {
Continue(Request),
ShortCircuit(Response),
}Expand description
Decision a request middleware returns.
Variants§
Continue(Request)
Forward the (possibly transformed) request to the next middleware.
ShortCircuit(Response)
Produce a response directly. Later request middlewares and the router/transport do not run, but the full response chain still processes the response.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Flow
impl !RefUnwindSafe for Flow
impl Send for Flow
impl !Sync for Flow
impl Unpin for Flow
impl UnsafeUnpin for Flow
impl !UnwindSafe for Flow
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