pub struct SBQueueItem {
    pub raw: SBQueueItemRef,
}
Expand description

A work item enqueued on a libdispatch aka Grand Central Dispatch (GCD) queue.

Most often, this will be a function or block.

“enqueued” here means that the work item has been added to a queue but it has not yet started executing. When it is “dequeued”, execution of the item begins.

Fields

raw: SBQueueItemRef

The underlying raw SBQueueItemRef.

Implementations

Check whether or not this is a valid SBQueueItem value.

The kind of this work item.

The code address that will be executed when this work item is executed.

Not all queue items will have an address associated with them. QueueItemKind::Function and QueueItemKind::Block work items should have an address.

Get an extended backtrace thread for this queue item, if available

If the backtrace/thread information was collected when this item was enqueued, this call will provide it.

The thread_type will typically be one of "libdispatch" or "pthread".

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Executes the destructor for this 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
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.