pub enum Branch<Req, Resp> {
Continue(Request<Req>),
Done(Response<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(Request<Req>)
Continue the pipeline with this request.
Done(Response<Resp>)
Stop the pipeline and return this response.
Implementations§
Trait Implementations§
Source§impl<NewReq, Resp> Merge<Resp> for Branch<NewReq, Resp>
impl<NewReq, Resp> Merge<Resp> for Branch<NewReq, Resp>
Source§fn into_continue(self) -> Self::Merged
fn into_continue(self) -> Self::Merged
Called when the previous
Branch was Continue.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