Trait MaybeSync

Source
pub unsafe trait MaybeSync { }
Expand description

A trait representing types that may or may not require Sync.

When the no-send feature is enabled, this trait has no Sync bound, allowing use with single-threaded async runtimes.

§Safety

Do not implement this trait directly. It is automatically implemented for all types.

Implementors§

Source§

impl<T> MaybeSync for T