Struct raft::prelude::HardState[][src]

pub struct HardState {
    pub term: u64,
    pub vote: u64,
    pub commit: u64,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

term: u64vote: u64commit: u64unknown_fields: UnknownFieldscached_size: CachedSize

Implementations

impl HardState[src]

pub fn new() -> HardState[src]

pub fn get_term(&self) -> u64[src]

pub fn clear_term(&mut self)[src]

pub fn set_term(&mut self, v: u64)[src]

pub fn get_vote(&self) -> u64[src]

pub fn clear_vote(&mut self)[src]

pub fn set_vote(&mut self, v: u64)[src]

pub fn get_commit(&self) -> u64[src]

pub fn clear_commit(&mut self)[src]

pub fn set_commit(&mut self, v: u64)[src]

Trait Implementations

impl Clear for HardState[src]

impl Clone for HardState[src]

impl Debug for HardState[src]

impl Default for HardState[src]

impl<'a> Default for &'a HardState[src]

impl Message for HardState[src]

impl PartialEq<HardState> for HardState[src]

impl PbPrint for HardState[src]

impl ProtobufValue for HardState[src]

impl StructuralPartialEq for HardState[src]

Auto Trait Implementations

impl RefUnwindSafe for HardState

impl Send for HardState

impl Sync for HardState

impl Unpin for HardState

impl UnwindSafe for HardState

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]