MF
Size: a a a
MF
KR
AV
AV
AV
#[async_trait]
pub trait Runtime {
/// Runtime's TCP stream type.
type TcpStream: AsyncRead + AsyncWrite + Unpin + Send + 'static;
fn spawn<F: Future<Output = ()> + Send + 'static>(&self, fut: F);
async fn sleep(&self, duration: Duration);
async fn connect_tcp(&self, target: String) -> io::Result<Self::TcpStream>;
async fn resolve(&self, target: String) -> io::Result<Vec<SocketAddr>>;
}
KR
KR
KR
MF
KR
KR
KR
MB
AV
MB
A
MF
MF
A
MF