pub trait RuntimeProvider: Clone + 'static {
type Handle: Clone + Send + Spawn + Sync + Unpin;
type Timer: Time + Send + Unpin;
type Udp: UdpSocket + Send;
type Tcp: Connect;
}
Expand description
RuntimeProvider defines which async runtime that handles IO and timers.
Required Associated Types
Implementors
sourceimpl RuntimeProvider for TokioRuntime
Available on crate feature tokio-runtime
only.
impl RuntimeProvider for TokioRuntime
Available on crate feature
tokio-runtime
only.