Skip to main content

MaybeSend

Trait MaybeSend 

Source
pub trait MaybeSend: Send { }
Expand description

Send where there are threads, and nothing on the Web, where a future never leaves the thread it was made on — the bound the work handed to a component must meet.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<T: Send> MaybeSend for T

Available on non-WebAssembly only.