#[repr(u8)]pub enum MessagePriority {
Low = 0,
Medium = 1,
High = 2,
Critical = 3,
}Variants§
Low = 0
Message to be transferred with a low level of importance
Medium = 1
Message to be transferred with a medium level of importance
High = 2
Message to be transferred with a high level of importance
Critical = 3
Message to be transferred with a critical level of importance
Implementations§
Trait Implementations§
Source§impl Clone for MessagePriority
impl Clone for MessagePriority
Source§fn clone(&self) -> MessagePriority
fn clone(&self) -> MessagePriority
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 MessagePriority
impl Debug for MessagePriority
Source§impl<'de> Deserialize<'de> for MessagePriority
impl<'de> Deserialize<'de> for MessagePriority
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<MessagePriority> for u8
impl From<MessagePriority> for u8
Source§fn from(val: MessagePriority) -> Self
fn from(val: MessagePriority) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MessagePriority
impl PartialEq for MessagePriority
Source§impl Serialize for MessagePriority
impl Serialize for MessagePriority
impl Copy for MessagePriority
impl Eq for MessagePriority
impl StructuralPartialEq for MessagePriority
Auto Trait Implementations§
impl Freeze for MessagePriority
impl RefUnwindSafe for MessagePriority
impl Send for MessagePriority
impl Sync for MessagePriority
impl Unpin for MessagePriority
impl UnwindSafe for MessagePriority
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