Trait QueueStrategy

Source
pub trait QueueStrategy {
    type Priority;

    // Required method
    fn new_storage<T>(&self) -> QueueStorageBox<T, Self::Priority>
       where T: Clone + 'static;
}
Expand description

Defines a queue strategy.

Required Associated Types§

Source

type Priority

The associated priority type, or () if the priorities are not supported.

Required Methods§

Source

fn new_storage<T>(&self) -> QueueStorageBox<T, Self::Priority>
where T: Clone + 'static,

Create a new storage.

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§