pub trait LocalAsyncClone:
Send
+ Sync
+ 'static {
// Required method
fn async_clone(&self) -> impl Future<Output = Self>;
}Expand description
An interface of the async_clone for async.
Required Methods§
Sourcefn async_clone(&self) -> impl Future<Output = Self>
fn async_clone(&self) -> impl Future<Output = Self>
Same as clone() but for async.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".