Struct fruity__bbqsrc::dispatch::DispatchQueueBuilder [−][src]
pub struct DispatchQueueBuilder<'a> { /* fields omitted */ }
Expand description
Configures and creates a DispatchQueue
.
Implementations
Creates a DispatchQueue
builder.
Creates a new DispatchQueue
with the configuration specified by this
builder.
Configuring the dispatch queue.
Sets the queue’s quality-of-service (QoS), or execution priority.
The value of qos.relative_priority
is clamped between 0
and -15
(QOS_MIN_RELATIVE_PRIORITY
).
Default value: DispatchQos::UNSPECIFIED
.
Sets the queue’s quality-of-service (QoS) class.
Default value: DispatchQosClass::Unspecified
.
Sets the queue’s quality-of-service (QoS) relative priority.
The value is clamped between 0
and -15
(QOS_MIN_RELATIVE_PRIORITY
).
Default value: 0
.
Sets the attributes that define the behavior of the queue.
Default value: DispatchQueueAttributes::SERIAL
.
pub const fn autorelease_frequency(
self,
autorelease_frequency: DispatchAutoreleaseFrequency
) -> Self
pub const fn autorelease_frequency(
self,
autorelease_frequency: DispatchAutoreleaseFrequency
) -> Self
Sets the frequency with which the queue creates autorelease pools for its tasks.
Default value: DispatchAutoreleaseFrequency::Inherit
.
Sets a target queue to which all blocks are redirected, while keeping the semantics of the created queue.
See “Dispatch queues” in
dispatch_set_target_queue
for details.
Default value: None
.
Sets a string label to attach to the queue to uniquely identify it in
debugging tools such as Instruments, sample
, stackshots, and crash
reports.
Because applications, libraries, and frameworks can all create their own
dispatch queues, a reverse-DNS naming style (com.example.myqueue
) is
recommended.
Default value: None
.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for DispatchQueueBuilder<'a>
impl<'a> Send for DispatchQueueBuilder<'a>
impl<'a> Sync for DispatchQueueBuilder<'a>
impl<'a> Unpin for DispatchQueueBuilder<'a>
impl<'a> UnwindSafe for DispatchQueueBuilder<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more