Enum raft_proto::prelude::MessageType
source · pub enum MessageType {
Show 19 variants
MsgHup,
MsgBeat,
MsgPropose,
MsgAppend,
MsgAppendResponse,
MsgRequestVote,
MsgRequestVoteResponse,
MsgSnapshot,
MsgHeartbeat,
MsgHeartbeatResponse,
MsgUnreachable,
MsgSnapStatus,
MsgCheckQuorum,
MsgTransferLeader,
MsgTimeoutNow,
MsgReadIndex,
MsgReadIndexResp,
MsgRequestPreVote,
MsgRequestPreVoteResponse,
}
Variants§
MsgHup
MsgBeat
MsgPropose
MsgAppend
MsgAppendResponse
MsgRequestVote
MsgRequestVoteResponse
MsgSnapshot
MsgHeartbeat
MsgHeartbeatResponse
MsgUnreachable
MsgSnapStatus
MsgCheckQuorum
MsgTransferLeader
MsgTimeoutNow
MsgReadIndex
MsgReadIndexResp
MsgRequestPreVote
MsgRequestPreVoteResponse
Trait Implementations§
source§impl Clone for MessageType
impl Clone for MessageType
source§fn clone(&self) -> MessageType
fn clone(&self) -> MessageType
Returns a copy 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<MessageType> for MessageType
impl PartialEq<MessageType> for MessageType
source§fn eq(&self, other: &MessageType) -> bool
fn eq(&self, other: &MessageType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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?