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.

Implementors§

Source§

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