Skip to main content

MaybeSend

Trait MaybeSend 

Source
pub trait MaybeSend: Send { }
Expand description

Send on every target where threads can share memory, which is every target but wasm32 without the atomics feature. A replaced or removed entry is freed on whichever thread frees its batch, so there its key and value must be Send.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<T: Send + ?Sized> MaybeSend for T

Available on not (WebAssembly and non-target feature atomics).