Enum ockam_core::api::Reply
source · pub enum Reply<T> {
Successful(T),
Failed(Error, Option<Status>),
}
Expand description
The Reply enum separates two possible cases when interpreting a Response
- there is a successfully decodable value of type T
- the request failed and there is an API error (the optional status is also provided)
Variants§
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Reply<T>where
T: Freeze,
impl<T> RefUnwindSafe for Reply<T>where
T: RefUnwindSafe,
impl<T> Send for Reply<T>where
T: Send,
impl<T> Sync for Reply<T>where
T: Sync,
impl<T> Unpin for Reply<T>where
T: Unpin,
impl<T> UnwindSafe for Reply<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<D> AsyncTryClone for D
impl<D> AsyncTryClone for D
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