LocalAsyncClone

Trait LocalAsyncClone 

Source
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§

Source

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", so this trait is not object safe.

Implementors§