Skip to main content

MaybeSendSync

Trait MaybeSendSync 

Source
pub trait MaybeSendSync: Send + Sync { }
Expand description

Send + Sync natively, nothing at all on wasm32, where a Worker’s JavaScript objects are neither and nothing runs on another thread anyway.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<T: Send + Sync + ?Sized> MaybeSendSync for T

Available on non-WebAssembly only.