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
A batch of keys to load values for
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
Auto Trait Implementations
impl<T> !RefUnwindSafe for TaskAssignment<T>
impl<T> Send for TaskAssignment<T>
impl<T> Sync for TaskAssignment<T>
impl<T> Unpin for TaskAssignment<T> where
<T as TaskHandler>::Key: Unpin,
impl<T> !UnwindSafe for TaskAssignment<T>
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert self
to an expression for Diesel’s query builder. Read more
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
Convert &self
to an expression for Diesel’s query builder. Read more