pub struct Response<T> {
pub inner: Result<T, String>,
}Expand description
Outbound message produced by a pipeline. Wraps a Result so that
downstream jigs can short-circuit on error.
Fields§
§inner: Result<T, String>The wrapped value, or an error message.
Implementations§
Trait Implementations§
Source§impl<Resp> Merge<Resp> for Response<Resp>
impl<Resp> Merge<Resp> for Response<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<T> Freeze for Response<T>where
T: Freeze,
impl<T> RefUnwindSafe for Response<T>where
T: RefUnwindSafe,
impl<T> Send for Response<T>where
T: Send,
impl<T> Sync for Response<T>where
T: Sync,
impl<T> Unpin for Response<T>where
T: Unpin,
impl<T> UnsafeUnpin for Response<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Response<T>where
T: 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