Glossary coding Term Page
Send/Sync
Rust traits for thread transfer safety and shared-reference safety
Core Idea
[[send-sync|Send/Sync]] are Rust's concurrency traits for describing whether a type can move across threads safely or be referenced by multiple threads at once. The compiler checks these traits when you spawn threads or pass data through channels.
Why It Matters Here
Mathbong uses Send/Sync to explain why Rc<T> cannot cross threads, why Arc<T> can, and what problem Mutex<T> is solving. They show that Rust concurrency rules are type properties, not just runtime conventions.