Trait send_sync_static::SSS

source ·
pub trait SSS: Send + Sync + 'static { }
Expand description

A marker which identifies a type as Send, Sync, and 'static. This trait is automatically implemented for any types which fulfill these requirements, and it is intended to be used as a shorthand for writing out each bound. For example:

use send_sync_static::SSS;
pub async fn send_data<D>(data: D) where D: SSS {
  // Do something here
}

Code written explicitly using Send, Sync, and 'static is fully interchangeable with this trait.

Implementors§

source§

impl<S> SSS for Swhere S: Send + Sync + 'static,