pub trait MaybeSend: Send { }Expand description
A portability bound that requires Send on native targets.
Native executors move storage sessions and their futures between tasks, so
those values must be Send. Browser IndexedDB implementations may instead
hold JavaScript values that cannot cross threads. Defining that difference
here keeps conditional bounds out of the storage traits and preserves their
native contract.
Native async fn trait implementations need no target-specific attribute;
use this marker on explicit future bounds that must retain the native
Send contract while permitting thread-local browser futures.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".