pub struct PendingAssignment<'a, T: TaskQueue, const N: usize> { /* private fields */ }
Expand description

The responsibilty to process a yet to be assigned set of tasks.

Implementations§

By converting into a TaskAssignment the task range responsible for processing will be bounded and further tasks enqueued will be of a new batch. Assignment of a task range can be deferred until resources such as database connections are ready as a way to process tasks in larger batches. This operation is constant time and wait-free

Move PendingAssignment into a thread where blocking is acceptable.

Trait Implementations§

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.

Convert self to an expression for Diesel’s query builder. Read more
Convert &self to an expression for Diesel’s query builder. 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.