#[repr(u8)]pub enum MsgPriority {
Low = 0,
Normal = 1,
High = 2,
Urgent = 3,
}Expand description
Message priority for queue operations.
Higher priority messages are delivered before lower priority messages when multiple messages are available.
Variants§
Low = 0
Lowest priority. Background messages, bulk transfers.
Normal = 1
Normal priority. Default for most messages.
High = 2
High priority. Time-sensitive messages.
Urgent = 3
Urgent priority. Control messages, error notifications.
Implementations§
Trait Implementations§
Source§impl Clone for MsgPriority
impl Clone for MsgPriority
Source§fn clone(&self) -> MsgPriority
fn clone(&self) -> MsgPriority
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 MsgPriority
impl Debug for MsgPriority
Source§impl Default for MsgPriority
impl Default for MsgPriority
Source§impl Hash for MsgPriority
impl Hash for MsgPriority
Source§impl Ord for MsgPriority
impl Ord for MsgPriority
Source§fn cmp(&self, other: &MsgPriority) -> Ordering
fn cmp(&self, other: &MsgPriority) -> 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 MsgPriority
impl PartialEq for MsgPriority
Source§impl PartialOrd for MsgPriority
impl PartialOrd for MsgPriority
impl Copy for MsgPriority
impl Eq for MsgPriority
impl StructuralPartialEq for MsgPriority
Auto Trait Implementations§
impl Freeze for MsgPriority
impl RefUnwindSafe for MsgPriority
impl Send for MsgPriority
impl Sync for MsgPriority
impl Unpin for MsgPriority
impl UnsafeUnpin for MsgPriority
impl UnwindSafe for MsgPriority
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