Trait SleepsortItem

Source
pub trait SleepsortItem:
    PartialOrd
    + Send
    + 'static {
    // Required method
    fn key(&self) -> Duration;
}
Expand description

Marks a trait that can be sleepsorted.

Required Methods§

Source

fn key(&self) -> Duration

Determine how long the thread should sleep for this particular value.

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.

Implementations on Foreign Types§

Source§

impl SleepsortItem for i8

Source§

fn key(&self) -> Duration

Source§

impl SleepsortItem for i16

Source§

fn key(&self) -> Duration

Source§

impl SleepsortItem for i32

Source§

fn key(&self) -> Duration

Source§

impl SleepsortItem for i64

Source§

fn key(&self) -> Duration

Source§

impl SleepsortItem for u8

Source§

fn key(&self) -> Duration

Source§

impl SleepsortItem for u16

Source§

fn key(&self) -> Duration

Source§

impl SleepsortItem for u32

Source§

fn key(&self) -> Duration

Source§

impl SleepsortItem for u64

Source§

fn key(&self) -> Duration

Implementors§