The Future Trait - Asynchronous Programming in Rust

trait SimpleFuture { type Output; fn poll(&mut self, wake: fn()) -> Poll<Self::Output>; } enum Poll<T> { Ready(T), Pending, }








探索Rust的异步编程:TheFutureTrait,
The Future Trait - Asynchronous Programming in Rust

trait SimpleFuture { type Output; fn poll(&mut self, wake: fn()) -> Poll<Self::Output>; } enum Poll<T> { Ready(T), Pending, }








380
1752

被折叠的 条评论
为什么被折叠?