pub enum RaftLogStateError<T: Types> {
VoteReversal(VoteReversal<T>),
LogIdReversal(LogIdReversal<T>),
LogIdNonConsecutive(LogIdNonConsecutive<T>),
LogIndexNotFound(LogIndexNotFound),
}Variants§
VoteReversal(VoteReversal<T>)
LogIdReversal(LogIdReversal<T>)
LogIdNonConsecutive(LogIdNonConsecutive<T>)
LogIndexNotFound(LogIndexNotFound)
Trait Implementations§
Source§impl<T: Clone + Types> Clone for RaftLogStateError<T>
impl<T: Clone + Types> Clone for RaftLogStateError<T>
Source§fn clone(&self) -> RaftLogStateError<T>
fn clone(&self) -> RaftLogStateError<T>
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<T: Types> Display for RaftLogStateError<T>
impl<T: Types> Display for RaftLogStateError<T>
Source§impl<T: Types> Error for RaftLogStateError<T>where
VoteReversal<T>: Error,
LogIdReversal<T>: Error,
LogIdNonConsecutive<T>: Error,
Self: Debug + Display,
impl<T: Types> Error for RaftLogStateError<T>where
VoteReversal<T>: Error,
LogIdReversal<T>: Error,
LogIdNonConsecutive<T>: Error,
Self: Debug + Display,
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<T: Types> From<LogIdNonConsecutive<T>> for RaftLogStateError<T>
impl<T: Types> From<LogIdNonConsecutive<T>> for RaftLogStateError<T>
Source§fn from(source: LogIdNonConsecutive<T>) -> Self
fn from(source: LogIdNonConsecutive<T>) -> Self
Converts to this type from the input type.
Source§impl<T: Types> From<LogIdReversal<T>> for RaftLogStateError<T>
impl<T: Types> From<LogIdReversal<T>> for RaftLogStateError<T>
Source§fn from(source: LogIdReversal<T>) -> Self
fn from(source: LogIdReversal<T>) -> Self
Converts to this type from the input type.
Source§impl<T: Types> From<LogIndexNotFound> for RaftLogStateError<T>
impl<T: Types> From<LogIndexNotFound> for RaftLogStateError<T>
Source§fn from(source: LogIndexNotFound) -> Self
fn from(source: LogIndexNotFound) -> Self
Converts to this type from the input type.
Source§impl<T: Types> From<RaftLogStateError<T>> for Error
impl<T: Types> From<RaftLogStateError<T>> for Error
Source§fn from(value: RaftLogStateError<T>) -> Self
fn from(value: RaftLogStateError<T>) -> Self
Converts to this type from the input type.
Source§impl<T: Types> From<VoteReversal<T>> for RaftLogStateError<T>
impl<T: Types> From<VoteReversal<T>> for RaftLogStateError<T>
Source§fn from(source: VoteReversal<T>) -> Self
fn from(source: VoteReversal<T>) -> Self
Converts to this type from the input type.
impl<T: Eq + Types> Eq for RaftLogStateError<T>
impl<T: Types> StructuralPartialEq for RaftLogStateError<T>
Auto Trait Implementations§
impl<T> Freeze for RaftLogStateError<T>
impl<T> RefUnwindSafe for RaftLogStateError<T>
impl<T> Send for RaftLogStateError<T>
impl<T> Sync for RaftLogStateError<T>
impl<T> Unpin for RaftLogStateError<T>
impl<T> UnwindSafe for RaftLogStateError<T>
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