pub trait FutureSyncExt: Future + Sized {
// Provided methods
fn make_sync(self) -> SyncFuture<Self> { ... }
fn boxed_sync(self) -> Pin<Box<SyncFuture<Self>>> { ... }
}Expand description
An extension trait to box futures and make them Sync.
Provided Methods§
Sourcefn make_sync(self) -> SyncFuture<Self>
fn make_sync(self) -> SyncFuture<Self>
Wrap the future so that it implements Sync
Sourcefn boxed_sync(self) -> Pin<Box<SyncFuture<Self>>>
fn boxed_sync(self) -> Pin<Box<SyncFuture<Self>>>
Box the future without losing Syncness
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.