Struct kvproto::raft_serverpb::RaftMessage[][src]

pub struct RaftMessage {
    pub region_id: u64,
    pub from_peer: SingularPtrField<Peer>,
    pub to_peer: SingularPtrField<Peer>,
    pub message: SingularPtrField<Message>,
    pub region_epoch: SingularPtrField<RegionEpoch>,
    pub is_tombstone: bool,
    pub start_key: Vec<u8>,
    pub end_key: Vec<u8>,
    pub merge_target: SingularPtrField<Region>,
    pub extra_msg: SingularPtrField<ExtraMessage>,
    pub extra_ctx: Vec<u8>,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

region_id: u64from_peer: SingularPtrField<Peer>to_peer: SingularPtrField<Peer>message: SingularPtrField<Message>region_epoch: SingularPtrField<RegionEpoch>is_tombstone: boolstart_key: Vec<u8>end_key: Vec<u8>merge_target: SingularPtrField<Region>extra_msg: SingularPtrField<ExtraMessage>extra_ctx: Vec<u8>unknown_fields: UnknownFieldscached_size: CachedSize

Implementations

impl RaftMessage[src]

pub fn new() -> RaftMessage[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_from_peer(&self) -> &Peer[src]

pub fn clear_from_peer(&mut self)[src]

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

pub fn set_from_peer(&mut self, v: Peer)[src]

pub fn mut_from_peer(&mut self) -> &mut Peer[src]

pub fn take_from_peer(&mut self) -> Peer[src]

pub fn get_to_peer(&self) -> &Peer[src]

pub fn clear_to_peer(&mut self)[src]

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

pub fn set_to_peer(&mut self, v: Peer)[src]

pub fn mut_to_peer(&mut self) -> &mut Peer[src]

pub fn take_to_peer(&mut self) -> Peer[src]

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

pub fn clear_message(&mut self)[src]

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

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

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

pub fn take_message(&mut self) -> Message[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_is_tombstone(&self) -> bool[src]

pub fn clear_is_tombstone(&mut self)[src]

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

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

pub fn clear_start_key(&mut self)[src]

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

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

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

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

pub fn clear_end_key(&mut self)[src]

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

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

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

pub fn get_merge_target(&self) -> &Region[src]

pub fn clear_merge_target(&mut self)[src]

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

pub fn set_merge_target(&mut self, v: Region)[src]

pub fn mut_merge_target(&mut self) -> &mut Region[src]

pub fn take_merge_target(&mut self) -> Region[src]

pub fn get_extra_msg(&self) -> &ExtraMessage[src]

pub fn clear_extra_msg(&mut self)[src]

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

pub fn set_extra_msg(&mut self, v: ExtraMessage)[src]

pub fn mut_extra_msg(&mut self) -> &mut ExtraMessage[src]

pub fn take_extra_msg(&mut self) -> ExtraMessage[src]

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

pub fn clear_extra_ctx(&mut self)[src]

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

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

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

Trait Implementations

impl Clear for RaftMessage[src]

impl Clone for RaftMessage[src]

impl Debug for RaftMessage[src]

impl Default for RaftMessage[src]

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

impl Message for RaftMessage[src]

impl PartialEq<RaftMessage> for RaftMessage[src]

impl PbPrint for RaftMessage[src]

impl ProtobufValue for RaftMessage[src]

impl StructuralPartialEq for RaftMessage[src]

Auto Trait Implementations

impl RefUnwindSafe for RaftMessage

impl Send for RaftMessage

impl Sync for RaftMessage

impl Unpin for RaftMessage

impl UnwindSafe for RaftMessage

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.