Function quinn::default_runtime

source ยท
pub fn default_runtime() -> Option<Arc<dyn Runtime>>
Expand description

Automatically select an appropriate runtime from those enabled at compile time

If runtime-tokio is enabled and this function is called from within a Tokio runtime context, then TokioRuntime is returned. Otherwise, if runtime-async-std is enabled, AsyncStdRuntime is returned. Otherwise, if runtime-smol is enabled, SmolRuntime is returned. Otherwise, None is returned.