pub enum Branch<Req, Resp> {
Continue(Req),
Done(Resp),
}Expand description
Outcome of a guard jig: either continue with a (possibly transformed) request, or short-circuit the pipeline with a response.
Variants§
Continue(Req)
Continue the pipeline with this request.
Done(Resp)
Stop the pipeline and return this response.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<Req, Resp> Freeze for Branch<Req, Resp>
impl<Req, Resp> RefUnwindSafe for Branch<Req, Resp>where
Req: RefUnwindSafe,
Resp: RefUnwindSafe,
impl<Req, Resp> Send for Branch<Req, Resp>
impl<Req, Resp> Sync for Branch<Req, Resp>
impl<Req, Resp> Unpin for Branch<Req, Resp>
impl<Req, Resp> UnsafeUnpin for Branch<Req, Resp>where
Req: UnsafeUnpin,
Resp: UnsafeUnpin,
impl<Req, Resp> UnwindSafe for Branch<Req, Resp>where
Req: UnwindSafe,
Resp: UnwindSafe,
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