runtime_golang/
lib.rs

1// use runtime_raw::*;
2
3// use futures::future::BoxFuture;
4// use futures::task::SpawnError;
5
6// use std::io;
7// use std::net::SocketAddr;
8// use std::pin::Pin;
9// use std::time::{Duration, Instant};
10
11pub struct Golang {}
12
13// impl Runtime for Golang {
14// fn spawn_boxed(&self, fut: BoxFuture<'static, ()>) -> Result<(), SpawnError> {}
15
16// fn connect_tcp_stream(
17//     &self,
18//     addr: &SocketAddr,
19// ) -> BoxFuture<'static, io::Result<Pin<Box<dyn TcpStream>>>> {
20// }
21
22// fn bind_tcp_listener(&self, addr: &SocketAddr) -> io::Result<Pin<Box<dyn TcpListener>>> {}
23
24// fn bind_udp_socket(&self, addr: &SocketAddr) -> io::Result<Pin<Box<dyn UdpSocket>>> {}
25
26// fn new_delay(&self, dur: Duration) -> Pin<Box<dyn Delay>> {}
27
28// fn new_delay_at(&self, at: Instant) -> Pin<Box<dyn Delay>> {}
29
30// fn new_interval(&self, dur: Duration) -> Pin<Box<dyn Interval>> {}
31// }