#[repr(u8)]pub enum ContextPriority {
Low = 0,
Medium = 1,
High = 2,
}Variants§
Implementations§
Source§impl ContextPriority
impl ContextPriority
Sourcepub const fn timeslices(&self) -> u32
pub const fn timeslices(&self) -> u32
Returns the number of timeslices a thread with this priority should be given.
Trait Implementations§
Source§impl Clone for ContextPriority
impl Clone for ContextPriority
Source§fn clone(&self) -> ContextPriority
fn clone(&self) -> ContextPriority
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 ContextPriority
impl Debug for ContextPriority
Source§impl PartialEq for ContextPriority
impl PartialEq for ContextPriority
impl Copy for ContextPriority
impl Eq for ContextPriority
impl StructuralPartialEq for ContextPriority
Auto Trait Implementations§
impl Freeze for ContextPriority
impl RefUnwindSafe for ContextPriority
impl Send for ContextPriority
impl Sync for ContextPriority
impl Unpin for ContextPriority
impl UnwindSafe for ContextPriority
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