Enum deque_loader::task::TaskAssignment[][src]

pub enum TaskAssignment<T: TaskHandler> {
    LoadBatch(Task<LoadBatch<T>>),
    NoAssignment(Task<CompletionReceipt>),
}
Expand description

A conditional assignment of work as a LoadBatch

Variants

LoadBatch

A batch of keys to load values for

Tuple Fields of LoadBatch

0: Task<LoadBatch<T>>
NoAssignment

If other task handlers opportunistically resolve all tasks, there will be no task assignment and the handler can drop unused connections for use elsewhere

Tuple Fields of NoAssignment

0: Task<CompletionReceipt>

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

Performs the conversion.

Performs the conversion.

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 alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. 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.