Struct kvproto::enginepb::SnapshotState[][src]

pub struct SnapshotState {
    pub region: SingularPtrField<Region>,
    pub peer: SingularPtrField<Peer>,
    pub apply_state: SingularPtrField<RaftApplyState>,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

region: SingularPtrField<Region>peer: SingularPtrField<Peer>apply_state: SingularPtrField<RaftApplyState>unknown_fields: UnknownFieldscached_size: CachedSize

Implementations

impl SnapshotState[src]

pub fn new() -> SnapshotState[src]

pub fn get_region(&self) -> &Region[src]

pub fn clear_region(&mut self)[src]

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

pub fn set_region(&mut self, v: Region)[src]

pub fn mut_region(&mut self) -> &mut Region[src]

pub fn take_region(&mut self) -> Region[src]

pub fn get_peer(&self) -> &Peer[src]

pub fn clear_peer(&mut self)[src]

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

pub fn set_peer(&mut self, v: Peer)[src]

pub fn mut_peer(&mut self) -> &mut Peer[src]

pub fn take_peer(&mut self) -> Peer[src]

pub fn get_apply_state(&self) -> &RaftApplyState[src]

pub fn clear_apply_state(&mut self)[src]

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

pub fn set_apply_state(&mut self, v: RaftApplyState)[src]

pub fn mut_apply_state(&mut self) -> &mut RaftApplyState[src]

pub fn take_apply_state(&mut self) -> RaftApplyState[src]

Trait Implementations

impl Clear for SnapshotState[src]

impl Clone for SnapshotState[src]

impl Debug for SnapshotState[src]

impl Default for SnapshotState[src]

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

impl Message for SnapshotState[src]

impl PartialEq<SnapshotState> for SnapshotState[src]

impl PbPrint for SnapshotState[src]

impl ProtobufValue for SnapshotState[src]

impl StructuralPartialEq for SnapshotState[src]

Auto Trait Implementations

impl RefUnwindSafe for SnapshotState

impl Send for SnapshotState

impl Sync for SnapshotState

impl Unpin for SnapshotState

impl UnwindSafe for SnapshotState

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.