pub enum Priority {
BACKGROUND = 0,
LOW = 1,
UTILITY = 2,
MEDIUM = 3,
HIGH = 4,
USERINITIATED = 5,
}Expand description
Task Priority
Spawn groups uses it to rank the importance of their spawned tasks and order of returned values only when waited for
that is when the wait_for_all or wait_non_async method is called
Variants§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> GetType for Twhere
T: ?Sized,
impl<T> GetType for Twhere
T: ?Sized,
Source§const TYPE: PhantomData<Self> = PhantomData
const TYPE: PhantomData<Self> = PhantomData
Acts as a metatype value