pub struct DispatchQueueBuilder<'a> { /* private fields */ }
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.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.