#box #future #async #reuse #no-std

no-std reusable-box-future

一个可重用的 Pin<Box<dyn Future<Output = T> + Send>>

2个不稳定版本

0.2.0 2021年2月27日
0.1.0 2021年2月20日

#668异步

Download history · Rust 包仓库 2526/week @ 2024-03-14 · Rust 包仓库 3892/week @ 2024-03-21 · Rust 包仓库 2919/week @ 2024-03-28 · Rust 包仓库 2237/week @ 2024-04-04 · Rust 包仓库 2382/week @ 2024-04-11 · Rust 包仓库 3062/week @ 2024-04-18 · Rust 包仓库 2860/week @ 2024-04-25 · Rust 包仓库 2795/week @ 2024-05-02 · Rust 包仓库 2653/week @ 2024-05-09 · Rust 包仓库 2535/week @ 2024-05-16 · Rust 包仓库 1762/week @ 2024-05-23 · Rust 包仓库 2806/week @ 2024-05-30 · Rust 包仓库 4100/week @ 2024-06-06 · Rust 包仓库 2485/week @ 2024-06-13 · Rust 包仓库 2549/week @ 2024-06-20 · Rust 包仓库 1977/week @ 2024-06-27 · Rust 包仓库

11,587 每月下载量
21 个Crates中使用了(3个直接使用)

MIT 许可证

20KB
354

reusable-box-future

license crates.io docs

一个可重用的 Pin<Box<dyn Future<Output = T> + Send>>

这允许您在大小和对齐允许的情况下替换存储在盒子中的未来而无需重新分配。

此代码是从 tokio-util crate 中提取的。

许可证

MIT


lib.rs:

一个可重用的 Pin<Box<dyn Future<Output = T> + Send>>

这允许您在大小和对齐允许的情况下替换存储在盒子中的未来而无需重新分配。

此代码是从 tokio-util crate 中提取的。

无运行时依赖