pub enum DispatchQoS {
Background = 0,
Utility = 1,
Default = 2,
UserInitiated = 3,
UserInteractive = 4,
}Expand description
Quality of Service levels for dispatch queues
These QoS levels help the system prioritize work appropriately.
§Examples
use screencapturekit::dispatch_queue::{DispatchQueue, DispatchQoS};
// High priority for UI-affecting work
let queue = DispatchQueue::new("com.myapp.ui", DispatchQoS::UserInteractive);
// Lower priority for background tasks
let bg_queue = DispatchQueue::new("com.myapp.background", DispatchQoS::Background);Variants§
Background = 0
Background QoS - for maintenance or cleanup tasks
Utility = 1
Utility QoS - for tasks that may take some time
Default = 2
Default QoS - standard priority
UserInitiated = 3
User Initiated QoS - for tasks initiated by the user
UserInteractive = 4
User Interactive QoS - for tasks that affect the UI
Trait Implementations§
Source§impl Clone for DispatchQoS
impl Clone for DispatchQoS
Source§fn clone(&self) -> DispatchQoS
fn clone(&self) -> DispatchQoS
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 DispatchQoS
impl Debug for DispatchQoS
Source§impl Default for DispatchQoS
impl Default for DispatchQoS
Source§fn default() -> DispatchQoS
fn default() -> DispatchQoS
Returns the “default value” for a type. Read more
Source§impl Hash for DispatchQoS
impl Hash for DispatchQoS
Source§impl PartialEq for DispatchQoS
impl PartialEq for DispatchQoS
impl Copy for DispatchQoS
impl Eq for DispatchQoS
impl StructuralPartialEq for DispatchQoS
Auto Trait Implementations§
impl Freeze for DispatchQoS
impl RefUnwindSafe for DispatchQoS
impl Send for DispatchQoS
impl Sync for DispatchQoS
impl Unpin for DispatchQoS
impl UnwindSafe for DispatchQoS
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