pub type TokioTimeout = Timeout<Tokio>;Available on crate feature
tokio only.Expand description
An alias for Timeout using the tokio runtime
Aliased Type§
pub struct TokioTimeout { /* private fields */ }Implementations§
Source§impl TokioTimeout
impl TokioTimeout
Sourcepub fn new_tokio(default_timeout: Duration) -> Self
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