Struct openraft::error::HigherVote
source · pub struct HigherVote<NID: NodeId> {
pub higher: Vote<NID>,
pub mine: Vote<NID>,
}
Fields§
§higher: Vote<NID>
§mine: Vote<NID>
Trait Implementations§
source§impl<NID: Clone + NodeId> Clone for HigherVote<NID>
impl<NID: Clone + NodeId> Clone for HigherVote<NID>
source§fn clone(&self) -> HigherVote<NID>
fn clone(&self) -> HigherVote<NID>
Returns a copy 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<NID: NodeId> Error for HigherVote<NID>where
Self: Debug + Display,
impl<NID: NodeId> Error for HigherVote<NID>where Self: Debug + Display,
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<NID: PartialEq + NodeId> PartialEq<HigherVote<NID>> for HigherVote<NID>
impl<NID: PartialEq + NodeId> PartialEq<HigherVote<NID>> for HigherVote<NID>
source§fn eq(&self, other: &HigherVote<NID>) -> bool
fn eq(&self, other: &HigherVote<NID>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<NID: Eq + NodeId> Eq for HigherVote<NID>
impl<NID: NodeId> StructuralEq for HigherVote<NID>
impl<NID: NodeId> StructuralPartialEq for HigherVote<NID>
Auto Trait Implementations§
impl<NID> RefUnwindSafe for HigherVote<NID>where NID: RefUnwindSafe,
impl<NID> Send for HigherVote<NID>
impl<NID> Sync for HigherVote<NID>
impl<NID> Unpin for HigherVote<NID>where NID: Unpin,
impl<NID> UnwindSafe for HigherVote<NID>where NID: UnwindSafe,
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.