Skip to main content

MaybeSync

Trait MaybeSync 

Source
pub trait MaybeSync: Sync { }
Expand description

Sync on native targets, no bound on wasm32. A browser store holding JS handles is !Sync; on the single-threaded wasm executor that is sound.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<T: ?Sized + Sync> MaybeSync for T

Available on non-WebAssembly only.