pub trait ToTimeout {
    // Required methods
    fn timeout(&self) -> BoxFuture<'static, ()>;
    fn create(d: Duration) -> Self;
}
Expand description

The interface to start a timeout

Users don’t need to interact with this trait

Required Methods§

source

fn timeout(&self) -> BoxFuture<'static, ()>

source

fn create(d: Duration) -> Self

Object Safety§

This trait is not object safe.

Implementors§