Skip to main content

MaybeSend

Trait MaybeSend 

Source
pub trait MaybeSend: Send { }
Expand description

Send natively; any type on WebAssembly (target_family = "wasm"), where futures and streams of the JavaScript host are not Send. Use it in bounds that must hold on both, such as a service given to Client::from_service.

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-target_family=wasm only.