pub enum AuthorityPromotionError<AuthorityError> {
SequenceOverflow,
Authority {
run_id: RunId,
source: AuthorityError,
},
}Expand description
Error returned when authority-mediated promotion fails.
Variants§
SequenceOverflow
Promotion command sequencing overflowed u64 while preparing commands.
Authority
Authority rejected or failed processing a specific run promotion command.
Trait Implementations§
Source§impl<AuthorityError: Clone> Clone for AuthorityPromotionError<AuthorityError>
impl<AuthorityError: Clone> Clone for AuthorityPromotionError<AuthorityError>
Source§fn clone(&self) -> AuthorityPromotionError<AuthorityError>
fn clone(&self) -> AuthorityPromotionError<AuthorityError>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<AuthorityError: Debug> Debug for AuthorityPromotionError<AuthorityError>
impl<AuthorityError: Debug> Debug for AuthorityPromotionError<AuthorityError>
Source§impl<E: Display> Display for AuthorityPromotionError<E>
impl<E: Display> Display for AuthorityPromotionError<E>
Source§impl<E: Debug + Display> Error for AuthorityPromotionError<E>
impl<E: Debug + Display> Error for AuthorityPromotionError<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()
Source§impl<AuthorityError: PartialEq> PartialEq for AuthorityPromotionError<AuthorityError>
impl<AuthorityError: PartialEq> PartialEq for AuthorityPromotionError<AuthorityError>
Source§fn eq(&self, other: &AuthorityPromotionError<AuthorityError>) -> bool
fn eq(&self, other: &AuthorityPromotionError<AuthorityError>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<AuthorityError: Eq> Eq for AuthorityPromotionError<AuthorityError>
impl<AuthorityError> StructuralPartialEq for AuthorityPromotionError<AuthorityError>
Auto Trait Implementations§
impl<AuthorityError> Freeze for AuthorityPromotionError<AuthorityError>where
AuthorityError: Freeze,
impl<AuthorityError> RefUnwindSafe for AuthorityPromotionError<AuthorityError>where
AuthorityError: RefUnwindSafe,
impl<AuthorityError> Send for AuthorityPromotionError<AuthorityError>where
AuthorityError: Send,
impl<AuthorityError> Sync for AuthorityPromotionError<AuthorityError>where
AuthorityError: Sync,
impl<AuthorityError> Unpin for AuthorityPromotionError<AuthorityError>where
AuthorityError: Unpin,
impl<AuthorityError> UnsafeUnpin for AuthorityPromotionError<AuthorityError>where
AuthorityError: UnsafeUnpin,
impl<AuthorityError> UnwindSafe for AuthorityPromotionError<AuthorityError>where
AuthorityError: 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