Struct kvproto::enginepb::CommandRequestHeader[][src]

pub struct CommandRequestHeader {
    pub region_id: u64,
    pub index: u64,
    pub term: u64,
    pub sync_log: bool,
    pub destroy: bool,
    pub context: Vec<u8>,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

region_id: u64index: u64term: u64sync_log: booldestroy: boolcontext: Vec<u8>unknown_fields: UnknownFieldscached_size: CachedSize

Implementations

impl CommandRequestHeader[src]

pub fn new() -> CommandRequestHeader[src]

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

pub fn clear_region_id(&mut self)[src]

pub fn set_region_id(&mut self, v: u64)[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]

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

pub fn clear_sync_log(&mut self)[src]

pub fn set_sync_log(&mut self, v: bool)[src]

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

pub fn clear_destroy(&mut self)[src]

pub fn set_destroy(&mut self, v: bool)[src]

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

pub fn clear_context(&mut self)[src]

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

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

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

Trait Implementations

impl Clear for CommandRequestHeader[src]

impl Clone for CommandRequestHeader[src]

impl Debug for CommandRequestHeader[src]

impl Default for CommandRequestHeader[src]

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

impl Message for CommandRequestHeader[src]

impl PartialEq<CommandRequestHeader> for CommandRequestHeader[src]

impl PbPrint for CommandRequestHeader[src]

impl ProtobufValue for CommandRequestHeader[src]

impl StructuralPartialEq for CommandRequestHeader[src]

Auto Trait Implementations

impl RefUnwindSafe for CommandRequestHeader

impl Send for CommandRequestHeader

impl Sync for CommandRequestHeader

impl Unpin for CommandRequestHeader

impl UnwindSafe for CommandRequestHeader

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.