Struct stack_queue::PendingAssignment
source · [−]pub struct PendingAssignment<T: TaskQueue, const N: usize = 2048>where
Int<N>: IsPowerOf2,{ /* private fields */ }
Expand description
The responsibilty to process a yet to be assigned set of tasks on the queue. Once converted
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.
Implementations
sourceimpl<T, const N: usize> PendingAssignment<T, N>where
T: TaskQueue,
Int<N>: IsPowerOf2,
impl<T, const N: usize> PendingAssignment<T, N>where
T: TaskQueue,
Int<N>: IsPowerOf2,
pub fn into_assignment(self) -> TaskAssignment<T, N>
Trait Implementations
sourceimpl<T, const N: usize> Drop for PendingAssignment<T, N>where
T: TaskQueue,
Int<N>: IsPowerOf2,
impl<T, const N: usize> Drop for PendingAssignment<T, N>where
T: TaskQueue,
Int<N>: IsPowerOf2,
impl<T> Send for PendingAssignment<T>where
T: TaskQueue,
impl<T> Sync for PendingAssignment<T>where
T: TaskQueue,
Auto Trait Implementations
impl<T, const N: usize = 2048> !RefUnwindSafe for PendingAssignment<T, N>
impl<T, const N: usize = 2048> !Send for PendingAssignment<T, N>
impl<T, const N: usize = 2048> !Sync for PendingAssignment<T, N>
impl<T, const N: usize> Unpin for PendingAssignment<T, N>
impl<T, const N: usize = 2048> !UnwindSafe for PendingAssignment<T, N>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> IntoSql for T
impl<T> IntoSql for T
sourcefn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T>,
T: SqlType + TypedExpressionType,
fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T>,
T: SqlType + TypedExpressionType,
Convert
self
to an expression for Diesel’s query builder. Read moresourcefn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
T: SqlType + TypedExpressionType,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
T: SqlType + TypedExpressionType,
Convert
&self
to an expression for Diesel’s query builder. Read more