ding 0.0.0

A DNS client and server library
Documentation
1
2
3
4
5
6
7
8
9
10
11
use core::cell::RefCell;

use alloc::boxed::Box;
use anyhow::Result;

use crate::net::Socket;

pub trait Runtime: 'static {
    type Socket: Socket + Send + Sync;
    fn spawn<R: Send>(closure: impl AsyncFnOnce() -> Result<R>) -> impl Future<Output = R>;
}