pub enum MessagePriority {
Low = 0,
Normal = 1,
High = 2,
Critical = 3,
}
Expand description
Message priority levels
Variants§
Low = 0
Low priority (best effort)
Normal = 1
Normal priority
High = 2
High priority
Critical = 3
Critical priority (immediate delivery)
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 Default for MessagePriority
impl Default 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 Display for MessagePriority
impl Display for MessagePriority
Source§impl Ord for MessagePriority
impl Ord for MessagePriority
Source§fn cmp(&self, other: &MessagePriority) -> Ordering
fn cmp(&self, other: &MessagePriority) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MessagePriority
impl PartialEq for MessagePriority
Source§impl PartialOrd for MessagePriority
impl PartialOrd 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