Trait MaybeSend

Source
pub unsafe trait MaybeSend { }
Expand description

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

When the no-send feature is enabled, this trait has no Send 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> MaybeSend for T