1 post with tag future
Dyn-Compatible Async Traits in Rust: Why the Manual Boxed Future Idiom is Required
Explains why async fn in traits breaks object safety for dynamic dispatch and how the explicit pinned boxed future return type, combined with 'static + Send bounds and pre-move cloning, restores dyn compatibility for service-oriented trait objects
·
16 minutes reading time