Trait pingora_timeout::ToTimeout
source · 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§
Object Safety§
This trait is not object safe.