Skip to main content

MaybeSend

Trait MaybeSend 

Source
pub trait MaybeSend: Send { }
Expand description

MaybeSend is no-op on wasm and Send on non wasm.

On wasm, most types don’t implement Send because JS types can not sent between workers directly.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<T: Send> MaybeSend for T

Available on non-target_family=wasm only.