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§

source

type Handle: Clone + Send + Spawn + Sync + Unpin

Handle to the executor;

source

type Timer: Time + Send + Unpin

Timer

source

type Udp: UdpSocket + Send

UdpSocket

source

type Tcp: Connect

TcpStream

Implementors§