Struct kvproto::raft_serverpb::SnapshotChunk[][src]

pub struct SnapshotChunk {
    pub message: SingularPtrField<RaftMessage>,
    pub data: Vec<u8>,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

message: SingularPtrField<RaftMessage>data: Vec<u8>unknown_fields: UnknownFieldscached_size: CachedSize

Implementations

impl SnapshotChunk[src]

pub fn new() -> SnapshotChunk[src]

pub fn get_message(&self) -> &RaftMessage[src]

pub fn clear_message(&mut self)[src]

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

pub fn set_message(&mut self, v: RaftMessage)[src]

pub fn mut_message(&mut self) -> &mut RaftMessage[src]

pub fn take_message(&mut self) -> RaftMessage[src]

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

pub fn clear_data(&mut self)[src]

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

pub fn mut_data(&mut self) -> &mut Vec<u8>[src]

pub fn take_data(&mut self) -> Vec<u8>[src]

Trait Implementations

impl Clear for SnapshotChunk[src]

impl Clone for SnapshotChunk[src]

impl Debug for SnapshotChunk[src]

impl Default for SnapshotChunk[src]

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

impl Message for SnapshotChunk[src]

impl PartialEq<SnapshotChunk> for SnapshotChunk[src]

impl PbPrint for SnapshotChunk[src]

impl ProtobufValue for SnapshotChunk[src]

impl StructuralPartialEq for SnapshotChunk[src]

Auto Trait Implementations

impl RefUnwindSafe for SnapshotChunk

impl Send for SnapshotChunk

impl Sync for SnapshotChunk

impl Unpin for SnapshotChunk

impl UnwindSafe for SnapshotChunk

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.