Type Alias TokioTimeout

Source
pub type TokioTimeout = Timeout<Tokio>;
Expand description

An alias for Timeout using the tokio runtime

Aliased Type§

struct TokioTimeout { /* private fields */ }

Implementations§

Source§

impl TokioTimeout

Source

pub fn new_tokio(default_timeout: Duration) -> Self

Create a new timeout that expires after default_timeout, creating a runtime with runtime::Tokio::new

§Panics

Panics if default_timeout is longer than ~584 years