#[non_exhaustive]pub enum CallError<E> {
Domain(E),
Deadline,
Cancelled,
Unavailable(Detail),
ContractViolation(Detail),
InvalidResponse(Detail),
Internal(Detail),
}Expand description
A typed domain outcome or failure to complete or interpret a call.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Domain(E)
The capability returned its declared domain error.
Deadline
The call deadline expired.
Cancelled
The call was cancelled.
The target was unavailable.
ContractViolation(Detail)
Caller input violated the contract.
InvalidResponse(Detail)
The provider produced an invalid response.
Internal(Detail)
The invocation failed internally.
Trait Implementations§
impl<E: Eq> Eq for CallError<E>
Source§impl<E: Debug> Error for CallError<E>
impl<E: Debug> Error for CallError<E>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl<E: PartialEq> StructuralPartialEq for CallError<E>
Auto Trait Implementations§
impl<E> Freeze for CallError<E>where
E: Freeze,
impl<E> RefUnwindSafe for CallError<E>where
E: RefUnwindSafe,
impl<E> Send for CallError<E>where
E: Send,
impl<E> Sync for CallError<E>where
E: Sync,
impl<E> Unpin for CallError<E>where
E: Unpin,
impl<E> UnsafeUnpin for CallError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for CallError<E>where
E: 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