pub struct VoteReversal<T: Types> {
pub current: T::Vote,
pub attempted: T::Vote,
}Expand description
Error indicating that a vote cannot be reversed.
Fields§
§current: T::Vote§attempted: T::VoteImplementations§
Trait Implementations§
Source§impl<T: Clone + Types> Clone for VoteReversal<T>
impl<T: Clone + Types> Clone for VoteReversal<T>
Source§fn clone(&self) -> VoteReversal<T>
fn clone(&self) -> VoteReversal<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 VoteReversal<T>
impl<T: Types> Display for VoteReversal<T>
Source§impl<T: Types> Error for VoteReversal<T>
impl<T: Types> Error for VoteReversal<T>
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<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 VoteReversal<T>
impl<T: Types> StructuralPartialEq for VoteReversal<T>
Auto Trait Implementations§
impl<T> Freeze for VoteReversal<T>
impl<T> RefUnwindSafe for VoteReversal<T>
impl<T> Send for VoteReversal<T>
impl<T> Sync for VoteReversal<T>
impl<T> Unpin for VoteReversal<T>
impl<T> UnwindSafe for VoteReversal<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