TokioRuntime

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() -> Result<Self>

Create a new TokioRuntime and bind it to this tokio runtime.

Source

pub fn tokio_current() -> 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.

Source

pub fn tokio_with_runtime(runtime: TokioRT) -> Self

Create a new TokioRuntime and bind it to this tokio runtime.