#[repr(transparent)]pub struct DispatchAutoReleaseFrequency(pub c_ulong);Expand description
Values to pass to the dispatch_queue_attr_make_with_autorelease_frequency() function.
Dispatch queues with this autorelease frequency inherit the behavior from their target queue. This is the default behavior for manually created queues.
Dispatch queues with this autorelease frequency push and pop an autorelease pool around the execution of every block that was submitted to it asynchronously.
See: dispatch_queue_attr_make_with_autorelease_frequency().
Dispatch queues with this autorelease frequency never set up an individual autorelease pool around the execution of a block that is submitted to it asynchronously. This is the behavior of the global concurrent queues.
See also Apple’s documentation
Tuple Fields§
§0: c_ulongImplementations§
Source§impl DispatchAutoReleaseFrequency
impl DispatchAutoReleaseFrequency
Sourcepub const INHERIT: Self
pub const INHERIT: Self
Values to pass to the dispatch_queue_attr_make_with_autorelease_frequency() function.
Dispatch queues with this autorelease frequency inherit the behavior from their target queue. This is the default behavior for manually created queues.
Dispatch queues with this autorelease frequency push and pop an autorelease pool around the execution of every block that was submitted to it asynchronously.
See: dispatch_queue_attr_make_with_autorelease_frequency().
Dispatch queues with this autorelease frequency never set up an individual autorelease pool around the execution of a block that is submitted to it asynchronously. This is the behavior of the global concurrent queues.
Sourcepub const WORK_ITEM: Self
pub const WORK_ITEM: Self
Values to pass to the dispatch_queue_attr_make_with_autorelease_frequency() function.
Dispatch queues with this autorelease frequency inherit the behavior from their target queue. This is the default behavior for manually created queues.
Dispatch queues with this autorelease frequency push and pop an autorelease pool around the execution of every block that was submitted to it asynchronously.
See: dispatch_queue_attr_make_with_autorelease_frequency().
Dispatch queues with this autorelease frequency never set up an individual autorelease pool around the execution of a block that is submitted to it asynchronously. This is the behavior of the global concurrent queues.
Sourcepub const NEVER: Self
pub const NEVER: Self
Values to pass to the dispatch_queue_attr_make_with_autorelease_frequency() function.
Dispatch queues with this autorelease frequency inherit the behavior from their target queue. This is the default behavior for manually created queues.
Dispatch queues with this autorelease frequency push and pop an autorelease pool around the execution of every block that was submitted to it asynchronously.
See: dispatch_queue_attr_make_with_autorelease_frequency().
Dispatch queues with this autorelease frequency never set up an individual autorelease pool around the execution of a block that is submitted to it asynchronously. This is the behavior of the global concurrent queues.
Trait Implementations§
Source§impl Clone for DispatchAutoReleaseFrequency
impl Clone for DispatchAutoReleaseFrequency
Source§fn clone(&self) -> DispatchAutoReleaseFrequency
fn clone(&self) -> DispatchAutoReleaseFrequency
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DispatchAutoReleaseFrequency
impl Debug for DispatchAutoReleaseFrequency
Source§impl Hash for DispatchAutoReleaseFrequency
impl Hash for DispatchAutoReleaseFrequency
Source§impl Ord for DispatchAutoReleaseFrequency
impl Ord for DispatchAutoReleaseFrequency
Source§fn cmp(&self, other: &DispatchAutoReleaseFrequency) -> Ordering
fn cmp(&self, other: &DispatchAutoReleaseFrequency) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for DispatchAutoReleaseFrequency
impl PartialEq for DispatchAutoReleaseFrequency
Source§fn eq(&self, other: &DispatchAutoReleaseFrequency) -> bool
fn eq(&self, other: &DispatchAutoReleaseFrequency) -> bool
self and other values to be equal, and is used by ==.