pub enum MessageType {
Show 19 variants
MsgHup = 0,
MsgBeat = 1,
MsgPropose = 2,
MsgAppend = 3,
MsgAppendResponse = 4,
MsgRequestVote = 5,
MsgRequestVoteResponse = 6,
MsgSnapshot = 7,
MsgHeartbeat = 8,
MsgHeartbeatResponse = 9,
MsgUnreachable = 10,
MsgSnapStatus = 11,
MsgCheckQuorum = 12,
MsgTransferLeader = 13,
MsgTimeoutNow = 14,
MsgReadIndex = 15,
MsgReadIndexResp = 16,
MsgRequestPreVote = 17,
MsgRequestPreVoteResponse = 18,
}Variants§
MsgHup = 0
MsgBeat = 1
MsgPropose = 2
MsgAppend = 3
MsgAppendResponse = 4
MsgRequestVote = 5
MsgRequestVoteResponse = 6
MsgSnapshot = 7
MsgHeartbeat = 8
MsgHeartbeatResponse = 9
MsgUnreachable = 10
MsgSnapStatus = 11
MsgCheckQuorum = 12
MsgTransferLeader = 13
MsgTimeoutNow = 14
MsgReadIndex = 15
MsgReadIndexResp = 16
MsgRequestPreVote = 17
MsgRequestPreVoteResponse = 18
Trait Implementations§
Source§impl Clone for MessageType
impl Clone for MessageType
Source§fn clone(&self) -> MessageType
fn clone(&self) -> MessageType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MessageType
impl Debug for MessageType
Source§impl Default for MessageType
impl Default for MessageType
Source§impl Hash for MessageType
impl Hash for MessageType
Source§impl PartialEq for MessageType
impl PartialEq for MessageType
Source§impl ProtobufEnum for MessageType
impl ProtobufEnum for MessageType
Source§fn from_i32(value: i32) -> Option<MessageType>
fn from_i32(value: i32) -> Option<MessageType>
Try to create an enum from
i32 value.
Return None if value is unknown.Source§fn enum_descriptor_static() -> &'static EnumDescriptor
fn enum_descriptor_static() -> &'static EnumDescriptor
Get enum descriptor by type.
Source§fn descriptor(&self) -> &'static EnumValueDescriptor
fn descriptor(&self) -> &'static EnumValueDescriptor
Get enum value descriptor.
Source§fn enum_descriptor(&self) -> &'static EnumDescriptor
fn enum_descriptor(&self) -> &'static EnumDescriptor
Get enum descriptor.
Source§impl ProtobufValue for MessageType
impl ProtobufValue for MessageType
Source§fn as_ref(&self) -> ReflectValueRef<'_>
fn as_ref(&self) -> ReflectValueRef<'_>
As ref
Source§fn is_non_zero(&self) -> bool
fn is_non_zero(&self) -> bool
Is value non-zero?
Source§fn as_ref_copy(&self) -> ReflectValueRef<'static>
fn as_ref_copy(&self) -> ReflectValueRef<'static>
impl Copy for MessageType
impl Eq for MessageType
impl StructuralPartialEq for MessageType
Auto Trait Implementations§
impl Freeze for MessageType
impl RefUnwindSafe for MessageType
impl Send for MessageType
impl Sync for MessageType
impl Unpin for MessageType
impl UnwindSafe for MessageType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more