Runtime

Trait Runtime 

Source
pub trait Runtime: RuntimeLite {
    type Net: Net;
    type Process: Process;
    type Quinn: QuinnRuntime;

    // Required method
    fn quinn() -> Self::Quinn;
}
Expand description

Runtime trait

Required Associated Types§

Source

type Net: Net

Available on crate feature net only.

The network abstraction for this runtime

Source

type Process: Process

Available on crate feature process only.

The process abstraction for this runtime

Source

type Quinn: QuinnRuntime

Available on crate feature quinn only.

The Quinn abstraction for this runtime

Required Methods§

Source

fn quinn() -> Self::Quinn

Available on crate feature quinn only.

Returns the runtime for quinn

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Runtime for AsyncStdRuntime

Available on crate feature async-std only.
Source§

impl Runtime for SmolRuntime

Available on crate feature smol only.
Source§

impl Runtime for TokioRuntime

Available on crate feature tokio only.