これだとランタイムが一致しなかったときのエラー防げんか…
-
-
-
struct Async<T, Rt: rt::Runtime> { ... } impl Async<TcpStream, rt::Tokio> { async fn connect(addr: impl ToSocketAddrs) -> io::Result<Self> { ... } } impl Async<TcpStream, rt::AsyncStd> { async fn connect(addr: impl ToSocketAddrs) -> io::Result<Self> { ... } } …うーん
Show this thread
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.