#[non_exhaustive]pub enum ProcessPriority {
Normal,
BelowNormal,
Idle,
}Expand description
Scheduling priority requested for the child. Normal (the default) means “inherit”: it
leaves the spawn exactly as it was before this option existed, so the child keeps the
parent’s priority class (Windows) or nice value (Unix). It does not reset a lowered parent
back to normal. The other values only lower priority, which needs no
privilege and never raises a value the child already inherits above a lower one.
Windows: BelowNormal adds BELOW_NORMAL_PRIORITY_CLASS and Idle adds
IDLE_PRIORITY_CLASS to the creation flags. Unix: the child’s nice value is raised to at
least 10 (BelowNormal) or 19 (Idle) between fork and exec.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for ProcessPriority
impl Clone for ProcessPriority
impl Copy for ProcessPriority
Source§impl Debug for ProcessPriority
impl Debug for ProcessPriority
Source§impl Default for ProcessPriority
impl Default for ProcessPriority
impl Eq for ProcessPriority
Source§impl PartialEq for ProcessPriority
impl PartialEq for ProcessPriority
impl StructuralPartialEq for ProcessPriority
Auto Trait Implementations§
impl Freeze for ProcessPriority
impl RefUnwindSafe for ProcessPriority
impl Send for ProcessPriority
impl Sync for ProcessPriority
impl Unpin for ProcessPriority
impl UnsafeUnpin for ProcessPriority
impl UnwindSafe for ProcessPriority
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