Skip to main content

MaybeSend

Trait MaybeSend 

Source
pub trait MaybeSend: Send { }
Expand description

Send on native targets, no bound on wasm32. The browser executor is single-threaded, so a getter future holding a JS handle across an await point is !Send there and must still satisfy the store traits.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

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

Available on non-WebAssembly only.