Struct kvproto::raft_serverpb::RaftApplyState[][src]

pub struct RaftApplyState {
    pub applied_index: u64,
    pub last_commit_index: u64,
    pub commit_index: u64,
    pub commit_term: u64,
    pub truncated_state: SingularPtrField<RaftTruncatedState>,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

applied_index: u64last_commit_index: u64commit_index: u64commit_term: u64truncated_state: SingularPtrField<RaftTruncatedState>unknown_fields: UnknownFieldscached_size: CachedSize

Implementations

impl RaftApplyState[src]

pub fn new() -> RaftApplyState[src]

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

pub fn clear_applied_index(&mut self)[src]

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

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

pub fn clear_last_commit_index(&mut self)[src]

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

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

pub fn clear_commit_index(&mut self)[src]

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

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

pub fn clear_commit_term(&mut self)[src]

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

pub fn get_truncated_state(&self) -> &RaftTruncatedState[src]

pub fn clear_truncated_state(&mut self)[src]

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

pub fn set_truncated_state(&mut self, v: RaftTruncatedState)[src]

pub fn mut_truncated_state(&mut self) -> &mut RaftTruncatedState[src]

pub fn take_truncated_state(&mut self) -> RaftTruncatedState[src]

Trait Implementations

impl Clear for RaftApplyState[src]

impl Clone for RaftApplyState[src]

impl Debug for RaftApplyState[src]

impl Default for RaftApplyState[src]

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

impl Message for RaftApplyState[src]

impl PartialEq<RaftApplyState> for RaftApplyState[src]

impl PbPrint for RaftApplyState[src]

impl ProtobufValue for RaftApplyState[src]

impl StructuralPartialEq for RaftApplyState[src]

Auto Trait Implementations

impl RefUnwindSafe for RaftApplyState

impl Send for RaftApplyState

impl Sync for RaftApplyState

impl Unpin for RaftApplyState

impl UnwindSafe for RaftApplyState

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.