Struct kvproto::raft_serverpb::RaftSnapshotData[][src]

pub struct RaftSnapshotData {
    pub region: SingularPtrField<Region>,
    pub file_size: u64,
    pub data: RepeatedField<KeyValue>,
    pub version: u64,
    pub meta: SingularPtrField<SnapshotMeta>,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

region: SingularPtrField<Region>file_size: u64data: RepeatedField<KeyValue>version: u64meta: SingularPtrField<SnapshotMeta>unknown_fields: UnknownFieldscached_size: CachedSize

Implementations

impl RaftSnapshotData[src]

pub fn new() -> RaftSnapshotData[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_file_size(&self) -> u64[src]

pub fn clear_file_size(&mut self)[src]

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

pub fn get_data(&self) -> &[KeyValue][src]

pub fn clear_data(&mut self)[src]

pub fn set_data(&mut self, v: RepeatedField<KeyValue>)[src]

pub fn mut_data(&mut self) -> &mut RepeatedField<KeyValue>[src]

pub fn take_data(&mut self) -> RepeatedField<KeyValue>[src]

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

pub fn clear_version(&mut self)[src]

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

pub fn get_meta(&self) -> &SnapshotMeta[src]

pub fn clear_meta(&mut self)[src]

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

pub fn set_meta(&mut self, v: SnapshotMeta)[src]

pub fn mut_meta(&mut self) -> &mut SnapshotMeta[src]

pub fn take_meta(&mut self) -> SnapshotMeta[src]

Trait Implementations

impl Clear for RaftSnapshotData[src]

impl Clone for RaftSnapshotData[src]

impl Debug for RaftSnapshotData[src]

impl Default for RaftSnapshotData[src]

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

impl Message for RaftSnapshotData[src]

impl PartialEq<RaftSnapshotData> for RaftSnapshotData[src]

impl PbPrint for RaftSnapshotData[src]

impl ProtobufValue for RaftSnapshotData[src]

impl StructuralPartialEq for RaftSnapshotData[src]

Auto Trait Implementations

impl RefUnwindSafe for RaftSnapshotData

impl Send for RaftSnapshotData

impl Sync for RaftSnapshotData

impl Unpin for RaftSnapshotData

impl UnwindSafe for RaftSnapshotData

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.