DefaultRuntime

Type Alias DefaultRuntime 

Source
pub type DefaultRuntime = TokioRuntime;
Available on non-madsim and crate feature tokio only.
Expand description

The default AsyncRuntime used when one is not explicitly specified.

This is defined to be the TokioRuntime when the tokio feature is enabled, or the [NaiveRuntime] if the naive-runtime feature is enabled.

If neither the tokio nor naive-runtime feature is enabled, this is defined to be (), which is not a valid AsyncRuntime and will cause compilation errors if used as one. You will need to explicitly specify a custom async runtime wherever one is required.

Aliased Typeยง

pub struct DefaultRuntime;