Trait LocalQueue

Source
pub trait LocalQueue<const N: usize> {
    type BufferCell: Send + Sync + Sized + 'static;

    // Required method
    fn queue() -> &'static LocalKey<StackQueue<Self::BufferCell, N>>;
}
Expand description

Thread local context for enqueuing tasks on StackQueue.

This can be implemented by using the local_queue macro on any TaskQueue, BackgroundQueue or BatchReducer impl

Required Associated Types§

Source

type BufferCell: Send + Sync + Sized + 'static

Required Methods§

Source

fn queue() -> &'static LocalKey<StackQueue<Self::BufferCell, N>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§