Crate reusable_box_future[][src]

A reusable Pin<Box<dyn Future<Output = T> + Send>>.

This lets you replace the future stored in the box without reallocating when the size and alignment permits it.

This code was extracted from tokio-util crate.

Structs

ReusableBoxFuture

A reusable Pin<Box<dyn Future<Output = T> + Send>>.

ReusableLocalBoxFuture

A reusable Pin<Box<dyn Future<Output = T>>.