Struct kvproto::raft_cmdpb::RaftRequestHeader[][src]

pub struct RaftRequestHeader {
    pub region_id: u64,
    pub peer: SingularPtrField<Peer>,
    pub read_quorum: bool,
    pub uuid: Vec<u8>,
    pub region_epoch: SingularPtrField<RegionEpoch>,
    pub term: u64,
    pub sync_log: bool,
    pub replica_read: bool,
    pub applied_index: u64,
    pub flags: u64,
    pub flag_data: Vec<u8>,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

region_id: u64peer: SingularPtrField<Peer>read_quorum: booluuid: Vec<u8>region_epoch: SingularPtrField<RegionEpoch>term: u64sync_log: boolreplica_read: boolapplied_index: u64flags: u64flag_data: Vec<u8>unknown_fields: UnknownFieldscached_size: CachedSize

Implementations

impl RaftRequestHeader[src]

pub fn new() -> RaftRequestHeader[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_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_read_quorum(&self) -> bool[src]

pub fn clear_read_quorum(&mut self)[src]

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

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

pub fn clear_uuid(&mut self)[src]

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

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

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

pub fn get_region_epoch(&self) -> &RegionEpoch[src]

pub fn clear_region_epoch(&mut self)[src]

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

pub fn set_region_epoch(&mut self, v: RegionEpoch)[src]

pub fn mut_region_epoch(&mut self) -> &mut RegionEpoch[src]

pub fn take_region_epoch(&mut self) -> RegionEpoch[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_replica_read(&self) -> bool[src]

pub fn clear_replica_read(&mut self)[src]

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

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

pub fn clear_applied_index(&mut self)[src]

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

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

pub fn clear_flags(&mut self)[src]

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

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

pub fn clear_flag_data(&mut self)[src]

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

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

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

Trait Implementations

impl Clear for RaftRequestHeader[src]

impl Clone for RaftRequestHeader[src]

impl Debug for RaftRequestHeader[src]

impl Default for RaftRequestHeader[src]

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

impl Message for RaftRequestHeader[src]

impl PartialEq<RaftRequestHeader> for RaftRequestHeader[src]

impl PbPrint for RaftRequestHeader[src]

impl ProtobufValue for RaftRequestHeader[src]

impl StructuralPartialEq for RaftRequestHeader[src]

Auto Trait Implementations

impl RefUnwindSafe for RaftRequestHeader

impl Send for RaftRequestHeader

impl Sync for RaftRequestHeader

impl Unpin for RaftRequestHeader

impl UnwindSafe for RaftRequestHeader

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.