pub enum Priority {
High,
Normal,
Low,
}Expand description
The order in which the thread pool runs queued callbacks.
Callbacks with a higher priority start before queued callbacks with a lower priority. Priority does not change the priority of the thread that runs the callback.
Variants§
High
Runs before normal and low priority callbacks, such as for work the user is waiting on.
Normal
The priority used by submit.
Low
Runs after high and normal priority callbacks, such as for background indexing.
Trait Implementations§
impl Copy for Priority
impl Eq for Priority
impl StructuralPartialEq for Priority
Auto Trait Implementations§
impl Forget for Priority
impl Freeze for Priority
impl Move for Priority
impl RefUnwindSafe for Priority
impl Send for Priority
impl Sync for Priority
impl Unpin for Priority
impl UnsafeUnpin 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