Struct kvproto::raft_serverpb::RaftMessage [−][src]
Fields
region_id: u64
from_peer: SingularPtrField<Peer>
to_peer: SingularPtrField<Peer>
message: SingularPtrField<Message>
region_epoch: SingularPtrField<RegionEpoch>
is_tombstone: bool
start_key: Vec<u8>
end_key: Vec<u8>
merge_target: SingularPtrField<Region>
extra_msg: SingularPtrField<ExtraMessage>
extra_ctx: Vec<u8>
unknown_fields: UnknownFields
cached_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]
fn clone(&self) -> RaftMessage
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for RaftMessage
[src]
impl Default for RaftMessage
[src]
fn default() -> RaftMessage
[src]
impl<'a> Default for &'a RaftMessage
[src]
fn default() -> &'a RaftMessage
[src]
impl Message for RaftMessage
[src]
fn is_initialized(&self) -> bool
[src]
fn merge_from(&mut self, is: &mut CodedInputStream<'_>) -> ProtobufResult<()>
[src]
fn compute_size(&self) -> u32
[src]
fn write_to_with_cached_sizes(
&self,
os: &mut CodedOutputStream<'_>
) -> ProtobufResult<()>
[src]
&self,
os: &mut CodedOutputStream<'_>
) -> ProtobufResult<()>
fn get_cached_size(&self) -> u32
[src]
fn get_unknown_fields(&self) -> &UnknownFields
[src]
fn mut_unknown_fields(&mut self) -> &mut UnknownFields
[src]
fn as_any(&self) -> &dyn Any
[src]
fn as_any_mut(&mut self) -> &mut dyn Any
[src]
fn into_any(self: Box<Self>) -> Box<dyn Any>
[src]
fn descriptor(&self) -> &'static MessageDescriptor
[src]
fn new() -> RaftMessage
[src]
fn default_instance() -> &'static RaftMessage
[src]
pub fn write_to(
&self,
os: &mut CodedOutputStream<'_>
) -> Result<(), ProtobufError>
[src]
&self,
os: &mut CodedOutputStream<'_>
) -> Result<(), ProtobufError>
pub fn write_length_delimited_to(
&self,
os: &mut CodedOutputStream<'_>
) -> Result<(), ProtobufError>
[src]
&self,
os: &mut CodedOutputStream<'_>
) -> Result<(), ProtobufError>
pub fn write_length_delimited_to_vec(
&self,
vec: &mut Vec<u8, Global>
) -> Result<(), ProtobufError>
[src]
&self,
vec: &mut Vec<u8, Global>
) -> Result<(), ProtobufError>
pub fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), ProtobufError>
[src]
pub fn check_initialized(&self) -> Result<(), ProtobufError>
[src]
pub fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), ProtobufError>
[src]
pub fn write_to_vec(&self, v: &mut Vec<u8, Global>) -> Result<(), ProtobufError>
[src]
pub fn write_to_bytes(&self) -> Result<Vec<u8, Global>, ProtobufError>
[src]
pub fn write_length_delimited_to_writer(
&self,
w: &mut dyn Write
) -> Result<(), ProtobufError>
[src]
&self,
w: &mut dyn Write
) -> Result<(), ProtobufError>
pub fn write_length_delimited_to_bytes(
&self
) -> Result<Vec<u8, Global>, ProtobufError>
[src]
&self
) -> Result<Vec<u8, Global>, ProtobufError>
pub fn type_id(&self) -> TypeId
[src]
pub fn descriptor_static() -> &'static MessageDescriptor
[src]
impl PartialEq<RaftMessage> for RaftMessage
[src]
fn eq(&self, other: &RaftMessage) -> bool
[src]
fn ne(&self, other: &RaftMessage) -> bool
[src]
impl PbPrint for RaftMessage
[src]
impl ProtobufValue for RaftMessage
[src]
fn as_ref(&self) -> ProtobufValueRef<'_>
[src]
pub fn as_any(&self) -> &(dyn Any + 'static)
[src]
pub fn is_non_zero(&self) -> bool
[src]
pub fn as_ref_copy(&self) -> ProtobufValueRef<'static>
[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]
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
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,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,