Struct raft_proto::eraftpb::SnapshotMetadata[][src]

pub struct SnapshotMetadata {
    pub conf_state: SingularPtrField<ConfState>,
    pub index: u64,
    pub term: u64,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

conf_state: SingularPtrField<ConfState>index: u64term: u64unknown_fields: UnknownFieldscached_size: CachedSize

Implementations

impl SnapshotMetadata[src]

pub fn new() -> SnapshotMetadata[src]

pub fn get_conf_state(&self) -> &ConfState[src]

pub fn clear_conf_state(&mut self)[src]

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

pub fn set_conf_state(&mut self, v: ConfState)[src]

pub fn mut_conf_state(&mut self) -> &mut ConfState[src]

pub fn take_conf_state(&mut self) -> ConfState[src]

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

pub fn clear_index(&mut self)[src]

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

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

pub fn clear_term(&mut self)[src]

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

Trait Implementations

impl Clear for SnapshotMetadata[src]

impl Clone for SnapshotMetadata[src]

impl Debug for SnapshotMetadata[src]

impl Default for SnapshotMetadata[src]

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

impl Message for SnapshotMetadata[src]

impl PartialEq<SnapshotMetadata> for SnapshotMetadata[src]

impl PbPrint for SnapshotMetadata[src]

impl ProtobufValue for SnapshotMetadata[src]

impl StructuralPartialEq for SnapshotMetadata[src]

Auto Trait Implementations

impl RefUnwindSafe for SnapshotMetadata

impl Send for SnapshotMetadata

impl Sync for SnapshotMetadata

impl Unpin for SnapshotMetadata

impl UnwindSafe for SnapshotMetadata

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.