Trait stack_queue::TaskQueue
source · [−]pub trait TaskQueue: Send + Sync + Sized + 'static {
type Task: Send + Sync + Hash + PartialEq + Sized + 'static;
type Value: Send + Sync + Sized + Debug + 'static;
type impl_trait_batch_process_0<'async_trait>: Future<Output = CompletionReceipt<Self>> + 'async_trait + Send;
fn queue() -> &'static LocalKey<StackQueue<Self>>;
fn batch_process<'async_trait>(
assignment: PendingAssignment<Self>
) -> Self::impl_trait_batch_process_0<'async_trait>;
fn auto_batch(task: Self::Task) -> AutoBatch<Self>ⓘNotable traits for AutoBatch<T, N>impl<T, const N: usize> Future for AutoBatch<T, N>where
T: TaskQueue,
Int<N>: IsPowerOf2, type Output = T::Value;
{ ... }
}
Required Associated Types
type Task: Send + Sync + Hash + PartialEq + Sized + 'static
type Value: Send + Sync + Sized + Debug + 'static
type impl_trait_batch_process_0<'async_trait>: Future<Output = CompletionReceipt<Self>> + 'async_trait + Send
Required Methods
fn queue() -> &'static LocalKey<StackQueue<Self>>
fn batch_process<'async_trait>(
assignment: PendingAssignment<Self>
) -> Self::impl_trait_batch_process_0<'async_trait>
Provided Methods
fn auto_batch(task: Self::Task) -> AutoBatch<Self>ⓘNotable traits for AutoBatch<T, N>impl<T, const N: usize> Future for AutoBatch<T, N>where
T: TaskQueue,
Int<N>: IsPowerOf2, type Output = T::Value;
T: TaskQueue,
Int<N>: IsPowerOf2, type Output = T::Value;