#[repr(u8)]pub enum Priority {
Critical = 0,
High = 1,
Normal = 2,
Low = 3,
Background = 4,
}Available on crate feature
extensions only.Expand description
Priority levels for state updates
Variants§
Critical = 0
Must be delivered immediately, may preempt other updates Use for: error states, disconnect notices, critical alerts
High = 1
Important updates that should be delivered promptly Use for: user input acknowledgment, command responses
Normal = 2
Standard priority for most updates Use for: regular state synchronization
Low = 3
Can be delayed if bandwidth is constrained Use for: progress updates, non-critical status
Background = 4
Lowest priority, deliver when convenient Use for: analytics, telemetry, prefetch
Implementations§
Trait Implementations§
Source§impl Ord for Priority
impl Ord for Priority
Source§impl PartialOrd for Priority
impl PartialOrd for Priority
impl Copy for Priority
impl Eq for Priority
impl StructuralPartialEq for Priority
Auto Trait Implementations§
impl Freeze for Priority
impl RefUnwindSafe for Priority
impl Send for Priority
impl Sync for Priority
impl Unpin for Priority
impl UnwindSafe for Priority
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