Struct rxqlite_lite_common::LeaderId
source · pub struct LeaderId {
pub term: u64,
pub node_id: NodeId,
}Fields§
§term: u64§node_id: NodeIdTrait Implementations§
source§impl<'de> Deserialize<'de> for LeaderId
impl<'de> Deserialize<'de> for LeaderId
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 LeaderId
impl Ord for LeaderId
source§impl PartialEq for LeaderId
impl PartialEq for LeaderId
source§impl PartialOrd for LeaderId
impl PartialOrd for LeaderId
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 LeaderId
impl Eq for LeaderId
impl StructuralPartialEq for LeaderId
Auto Trait Implementations§
impl Freeze for LeaderId
impl RefUnwindSafe for LeaderId
impl Send for LeaderId
impl Sync for LeaderId
impl Unpin for LeaderId
impl UnwindSafe for LeaderId
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