Rust · Trait
Sync
Sync means a type can safely have shared references used across threads. Rust automatically implements it when sharing those references cannot cause undefined behavior or data races.
Last updated
- Since
- 1.0.0
Syntax
pub unsafe auto trait Sync { }In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
SendCellRefCellUnsafeCellMutexRwLockArcRc