Struct kvproto::raft_serverpb::RaftLocalState [−][src]
Fields
hard_state: SingularPtrField<HardState>
last_index: u64
unknown_fields: UnknownFields
cached_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][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,