Enum raft::eraftpb::MessageType [−][src]
pub enum MessageType { 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
impl Clone for MessageType
[src]
impl Clone for MessageType
fn clone(&self) -> MessageType
[src]
fn clone(&self) -> MessageType
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for MessageType
[src]
impl PartialEq for MessageType
fn eq(&self, other: &MessageType) -> bool
[src]
fn eq(&self, other: &MessageType) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Eq for MessageType
[src]
impl Eq for MessageType
impl Debug for MessageType
[src]
impl Debug for MessageType
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Hash for MessageType
[src]
impl Hash for MessageType
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl ProtobufEnum for MessageType
[src]
impl ProtobufEnum for MessageType
fn value(&self) -> i32
[src]
fn value(&self) -> i32
Get enum i32
value.
fn from_i32(value: i32) -> Option<MessageType>
[src]
fn from_i32(value: i32) -> Option<MessageType>
Try to create an enum from i32
value. Return None
if value is unknown. Read more
fn values() -> &'static [Self]
[src]
fn values() -> &'static [Self]
Get all enum values for enum type.
fn enum_descriptor_static() -> &'static EnumDescriptor
[src]
fn enum_descriptor_static() -> &'static EnumDescriptor
Get enum descriptor by type.
fn descriptor(&self) -> &'static EnumValueDescriptor
[src]
fn descriptor(&self) -> &'static EnumValueDescriptor
Get enum value descriptor.
fn enum_descriptor(&self) -> &'static EnumDescriptor
[src]
fn enum_descriptor(&self) -> &'static EnumDescriptor
Get enum descriptor.
impl Copy for MessageType
[src]
impl Copy for MessageType
impl Default for MessageType
[src]
impl Default for MessageType
impl ProtobufValue for MessageType
[src]
impl ProtobufValue for MessageType
fn as_ref(&self) -> ProtobufValueRef
[src]
fn as_ref(&self) -> ProtobufValueRef
fn as_any(&self) -> &(Any + 'static)
[src]
fn as_any(&self) -> &(Any + 'static)
fn is_non_zero(&self) -> bool
[src]
fn is_non_zero(&self) -> bool
fn as_ref_copy(&self) -> ProtobufValueRef<'static>
[src]
fn as_ref_copy(&self) -> ProtobufValueRef<'static>
Auto Trait Implementations
impl Send for MessageType
impl Send for MessageType
impl Sync for MessageType
impl Sync for MessageType