Enum channel_loader::task::TaskAssignment [−][src]
pub enum TaskAssignment<T: TaskHandler> { LoadBatch(Task<LoadBatch<T>>), NoAssignment(Task<CompletionReceipt<T>>), }
Expand description
A conditional assignment of work as a LoadBatch
Variants
A batch of keys to load values for
NoAssignment(Task<CompletionReceipt<T>>)
If other task handlers opportunistically resolve all tasks, there will be no task assignment and the handler can drop unused connections for use elsewhere
Auto Trait Implementations
impl<T> !RefUnwindSafe for TaskAssignment<T>
impl<T> Send for TaskAssignment<T>
impl<T> Sync for TaskAssignment<T> where
<T as TaskHandler>::Key: Sync,
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>,
[src]
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
[src]Convert &self
to an expression for Diesel’s query builder. Read more