Type Alias TokioRuntime

Source
pub type TokioRuntime = Runtime<Tokio>;
Expand description

Type alias for the tokio runtime

Aliased Type§

pub struct TokioRuntime { /* private fields */ }

Implementations§

Source§

impl TokioRuntime

Source

pub fn tokio() -> Self

Create a new TokioRuntime and bind it to the current tokio runtime by default.

Source

pub fn tokio_with_handle(handle: Handle) -> Self

Create a new TokioRuntime and bind it to the tokio runtime associated to this handle by default.