Skip to main content

Module wasm

Module wasm 

Source
Expand description

WASM compatibility shims.

On native targets, these are aliases for Send/Sync. On wasm32, the bounds are removed since wasm32 is single-threaded.

Traits§

WasmCompatSend
Marker trait equivalent to Send on native, unconditional on WASM.
WasmCompatSync
Marker trait equivalent to Sync on native, unconditional on WASM.

Type Aliases§

WasmBoxedFuture
A boxed future that is Send on native and unbound on WASM.