pub enum CallError<E> {
Operation(E),
LeaderDropped,
}Expand description
Error returned by policy-aware calls.
Variants§
Operation(E)
The operation completed with an error.
LeaderDropped
The leader future was dropped before publishing a result.
Implementations§
Source§impl<E> CallError<E>
impl<E> CallError<E>
Sourcepub const fn is_leader_dropped(&self) -> bool
pub const fn is_leader_dropped(&self) -> bool
Returns whether the leader was dropped before publishing a result.
Sourcepub const fn operation_error(&self) -> Option<&E>
pub const fn operation_error(&self) -> Option<&E>
Returns the operation error, if the operation completed with one.
Trait Implementations§
impl<E: Eq> Eq for CallError<E>
Source§impl<E> Error for CallError<E>where
E: Error + 'static,
impl<E> Error for CallError<E>where
E: Error + 'static,
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