Struct kvproto::raft_serverpb::RaftSnapshotData [−][src]
Fields
region: SingularPtrField<Region>
file_size: u64
data: RepeatedField<KeyValue>
version: u64
meta: SingularPtrField<SnapshotMeta>
unknown_fields: UnknownFields
cached_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][+]
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>,