pub struct BoxedQueue { /* private fields */ }
Expand description

A boxed owned workqueue.

Invariants

ptr is owned by this instance of BoxedQueue, so it’s always valid.

Methods from Deref<Target = Queue>

Enqueues a work item.

Returns true if the work item was successfully enqueue; returns false if it had already been (and continued to be) enqueued.

Enqueues a work item with an explicit adapter.

Returns true if the work item was successfully enqueue; returns false if it had already been (and continued to be) enqueued.

Tries to spawn the given function or closure as a work item.

Users are encouraged to use spawn_work_item as it automatically defines the lock class key to be used.

Trait Implementations

The resulting type after dereferencing.

Dereferences the value.

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 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.