pub type TokioRuntime = Runtime<Tokio>;
Expand description
Type alias for the tokio runtime
Aliased Type§
pub struct TokioRuntime { /* private fields */ }
Implementations§
Source§impl TokioRuntime
impl TokioRuntime
Sourcepub fn tokio_current() -> Self
pub fn tokio_current() -> Self
Create a new TokioRuntime and bind it to the current tokio runtime by default.
Sourcepub fn tokio_with_handle(handle: Handle) -> Self
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.
Sourcepub fn tokio_with_runtime(runtime: TokioRT) -> Self
pub fn tokio_with_runtime(runtime: TokioRT) -> Self
Create a new TokioRuntime and bind it to this tokio runtime.