pub enum GlobalQueueIdentifier {
Priority(DispatchQueueGlobalPriority),
QualityOfService(DispatchQoS),
}Expand description
Global queue identifier definition for DispatchQueue::new and DispatchQueue::new_with_target.
Variants§
Priority(DispatchQueueGlobalPriority)
Standard priority based queue.
QualityOfService(DispatchQoS)
Quality of service priority based queue.
Implementations§
Source§impl GlobalQueueIdentifier
impl GlobalQueueIdentifier
Sourcepub fn to_identifier(self) -> isize
pub fn to_identifier(self) -> isize
Convert and consume GlobalQueueIdentifier into its raw value.
Trait Implementations§
Source§impl Clone for GlobalQueueIdentifier
impl Clone for GlobalQueueIdentifier
Source§fn clone(&self) -> GlobalQueueIdentifier
fn clone(&self) -> GlobalQueueIdentifier
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 GlobalQueueIdentifier
impl Debug for GlobalQueueIdentifier
Source§impl Ord for GlobalQueueIdentifier
impl Ord for GlobalQueueIdentifier
Source§fn cmp(&self, other: &GlobalQueueIdentifier) -> Ordering
fn cmp(&self, other: &GlobalQueueIdentifier) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for GlobalQueueIdentifier
impl PartialEq for GlobalQueueIdentifier
Source§impl PartialOrd for GlobalQueueIdentifier
impl PartialOrd for GlobalQueueIdentifier
impl Copy for GlobalQueueIdentifier
impl Eq for GlobalQueueIdentifier
impl StructuralPartialEq for GlobalQueueIdentifier
Auto Trait Implementations§
impl Freeze for GlobalQueueIdentifier
impl RefUnwindSafe for GlobalQueueIdentifier
impl Send for GlobalQueueIdentifier
impl Sync for GlobalQueueIdentifier
impl Unpin for GlobalQueueIdentifier
impl UnwindSafe for GlobalQueueIdentifier
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