pub struct LogId {
pub term: u64,
pub index: u64,
}
Expand description
The identity of a raft log. A term and an index identifies an log globally.
Fields§
§term: u64
§index: u64
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for LogId
impl<'de> Deserialize<'de> for LogId
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for LogId
impl Ord for LogId
source§impl PartialEq<LogId> for LogId
impl PartialEq<LogId> for LogId
source§impl PartialOrd<LogId> for LogId
impl PartialOrd<LogId> for LogId
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for LogId
impl Eq for LogId
impl StructuralEq for LogId
impl StructuralPartialEq for LogId
Auto Trait Implementations§
impl RefUnwindSafe for LogId
impl Send for LogId
impl Sync for LogId
impl Unpin for LogId
impl UnwindSafe for LogId
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.