Skip to main content

MaybeSync

Trait MaybeSync 

Source
pub trait MaybeSync: Sync { }
Expand description

Adds a Sync requirement to userdata types when the send feature is enabled.

It is automatically implemented for all applicable types.

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 crate feature send only.