pub enum CallbackPriority {
High,
Normal,
Low,
}Expand description
Priority at which the thread pool schedules callbacks created with a
CallbackEnviron.
Win32 types the priority as TP_CALLBACK_PRIORITY, an open integer alias
whose only defined values are the three below; a fourth constant,
TP_CALLBACK_PRIORITY_INVALID, is a count sentinel rather than a priority.
This crate owns its priority surface as a closed enum so safe code cannot
hand an out-of-contract value to native object creation – the very thing the
bare alias would allow.
Variants§
High
Highest scheduling priority (TP_CALLBACK_PRIORITY_HIGH).
Normal
Default scheduling priority (TP_CALLBACK_PRIORITY_NORMAL); the value a
freshly initialized environment carries.
Low
Lowest scheduling priority (TP_CALLBACK_PRIORITY_LOW).
Trait Implementations§
Source§impl Clone for CallbackPriority
impl Clone for CallbackPriority
Source§fn clone(&self) -> CallbackPriority
fn clone(&self) -> CallbackPriority
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CallbackPriority
Source§impl Debug for CallbackPriority
impl Debug for CallbackPriority
impl Eq for CallbackPriority
Source§impl Hash for CallbackPriority
impl Hash for CallbackPriority
Source§impl PartialEq for CallbackPriority
impl PartialEq for CallbackPriority
impl StructuralPartialEq for CallbackPriority
Auto Trait Implementations§
impl Freeze for CallbackPriority
impl RefUnwindSafe for CallbackPriority
impl Send for CallbackPriority
impl Sync for CallbackPriority
impl Unpin for CallbackPriority
impl UnsafeUnpin for CallbackPriority
impl UnwindSafe for CallbackPriority
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