Skip to main content

MaybeSync

Trait MaybeSync 

Source
pub trait MaybeSync: Sync { }
Expand description

A trait that requires Sync on native platforms and nothing on WASM.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<T: Sync> MaybeSync for T

Available on non-WebAssembly only.