#[repr(i8)]pub enum QosClass {
Background = 0,
Utility = 1,
Default = 2,
UserInitiated = 3,
UserInteractive = 4,
}Expand description
macOS Quality-of-Service class, stored as Mechanism::value when the policy
is MechanismPolicy::Qos. A stable ordinal (NOT the raw darwin qos_class_t
hex) so the C ABI and serialized conformance stay trivial.
Variants§
Background = 0
macOS QOS_CLASS_BACKGROUND.
Utility = 1
macOS QOS_CLASS_UTILITY.
Default = 2
macOS QOS_CLASS_DEFAULT.
UserInitiated = 3
macOS QOS_CLASS_USER_INITIATED.
UserInteractive = 4
macOS QOS_CLASS_USER_INTERACTIVE.
Implementations§
Trait Implementations§
impl Copy for QosClass
impl Eq for QosClass
impl StructuralPartialEq for QosClass
Auto Trait Implementations§
impl Freeze for QosClass
impl RefUnwindSafe for QosClass
impl Send for QosClass
impl Sync for QosClass
impl Unpin for QosClass
impl UnsafeUnpin for QosClass
impl UnwindSafe for QosClass
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