pub enum MessageType {
Text,
System,
KeyRotation,
MemberJoin,
MemberLeave,
Heartbeat,
}Expand description
Message types in the Phalanx protocol
Variantsยง
Text
Regular text message
System
System/control message
KeyRotation
Key rotation message
MemberJoin
Member join notification
MemberLeave
Member leave notification
Heartbeat
Heartbeat/keepalive message
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<'de> Deserialize<'de> for MessageType
impl<'de> Deserialize<'de> for MessageType
Sourceยงfn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Sourceยงimpl From<MessageType> for u8
impl From<MessageType> for u8
Sourceยงfn from(msg_type: MessageType) -> u8
fn from(msg_type: MessageType) -> u8
Converts to this type from the input type.
Sourceยงimpl PartialEq for MessageType
impl PartialEq for MessageType
Sourceยงimpl Serialize for MessageType
impl Serialize for MessageType
Sourceยงimpl TryFrom<u8> for MessageType
impl TryFrom<u8> 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