Struct kvproto::raft_serverpb::RaftLocalState[][src]

pub struct RaftLocalState {
    pub hard_state: SingularPtrField<HardState>,
    pub last_index: u64,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

hard_state: SingularPtrField<HardState>last_index: u64unknown_fields: UnknownFieldscached_size: CachedSize

Implementations

impl RaftLocalState[src]

pub fn new() -> RaftLocalState[src]

pub fn get_hard_state(&self) -> &HardState[src]

pub fn clear_hard_state(&mut self)[src]

pub fn has_hard_state(&self) -> bool[src]

pub fn set_hard_state(&mut self, v: HardState)[src]

pub fn mut_hard_state(&mut self) -> &mut HardState[src]

pub fn take_hard_state(&mut self) -> HardState[src]

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

pub fn clear_last_index(&mut self)[src]

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

Trait Implementations

impl Clear for RaftLocalState[src]

impl Clone for RaftLocalState[src]

impl Debug for RaftLocalState[src]

impl Default for RaftLocalState[src]

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

impl Message for RaftLocalState[src]

impl PartialEq<RaftLocalState> for RaftLocalState[src]

impl PbPrint for RaftLocalState[src]

impl ProtobufValue for RaftLocalState[src]

impl StructuralPartialEq for RaftLocalState[src]

Auto Trait Implementations

impl RefUnwindSafe for RaftLocalState

impl Send for RaftLocalState

impl Sync for RaftLocalState

impl Unpin for RaftLocalState

impl UnwindSafe for RaftLocalState

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> 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.