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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GlobalQueueIdentifier
Source§impl Debug for GlobalQueueIdentifier
impl Debug for GlobalQueueIdentifier
impl Eq 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 (const: unstable) · 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§fn eq(&self, other: &GlobalQueueIdentifier) -> bool
fn eq(&self, other: &GlobalQueueIdentifier) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for GlobalQueueIdentifier
impl PartialOrd 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 UnsafeUnpin for GlobalQueueIdentifier
impl UnwindSafe for GlobalQueueIdentifier
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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