Struct kvproto::raft_cmdpb::RaftRequestHeader [−][src]
Fields
region_id: u64
peer: SingularPtrField<Peer>
read_quorum: bool
uuid: Vec<u8>
region_epoch: SingularPtrField<RegionEpoch>
term: u64
sync_log: bool
replica_read: bool
applied_index: u64
flags: u64
flag_data: Vec<u8>
unknown_fields: UnknownFields
cached_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][+]
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>,