Skip to content
masterclass Buddy

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.

Subscribe
  • Send
  • Cell
  • RefCell
  • UnsafeCell
  • Mutex
  • RwLock
  • Arc
  • Rc

Source: Sync in std::marker - Rust. Checked 2026-11-03.