#[repr(u8)]pub enum MessageType {
PlainMessageType = 0,
SecureMessageType = 1,
UnknownMessageType = 2,
}Expand description
The type of the message:
- 0 - Plain text or unencrypted message.
- 1 - Secured text or encrypted message.
Variants§
PlainMessageType = 0
Plain text or unencrypted message.
SecureMessageType = 1
Secured text or encrypted message.
UnknownMessageType = 2
Implementations§
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
Creates MessageType with the default parameters.
impl Default for MessageType
Creates MessageType with the default parameters.
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 Display for MessageType
impl Display for MessageType
Source§impl From<MessageType> for u8
impl From<MessageType> for u8
Source§fn from(enum_value: MessageType) -> Self
fn from(enum_value: MessageType) -> Self
Converts to this type from the input type.
Source§impl From<u8> for MessageType
Returns a ‘MessageType’ for the given u8 value.
impl From<u8> for MessageType
Returns a ‘MessageType’ for the given u8 value.
Throws an UnknownMessageType when the type is unknown.
Source§impl PartialEq for MessageType
impl PartialEq for MessageType
Source§impl Serialize for MessageType
impl Serialize for MessageType
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
Source§impl<T> Clear for Twhere
T: InitializableFromZeroed + ?Sized,
impl<T> Clear for Twhere
T: InitializableFromZeroed + ?Sized,
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> InitializableFromZeroed for Twhere
T: Default,
impl<T> InitializableFromZeroed for Twhere
T: Default,
Source§unsafe fn initialize(place: *mut T)
unsafe fn initialize(place: *mut T)
Called to initialize a place to a valid value, after it is set
to all-bits-zero. Read more