Skip to main content

AsyncFriendly

Trait AsyncFriendly 

Source
pub trait AsyncFriendly:
    Send
    + Sync
    + 'static { }
Expand description

The bounds Send + Sync + 'static are often required by type parameters to make Futures Send + Sync + 'static.

This trait bundles these into a single super-trait for convenience.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T> AsyncFriendly for T
where T: Send + Sync + 'static,