Skip to main content

MaybeSend

Trait MaybeSend 

Source
pub trait MaybeSend: Send { }
Expand description

Send on a host; nothing in a browser, where values that touch JavaScript stay on the thread that made them. Bound a future or stream by it where a host needs Send and a browser cannot give it.

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 non-WebAssembly only.