Send and Sync impls for Arc

⚓ Rust    📅 2026-02-24    👤 surdeus    👁️ 4      

surdeus

Info

This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: Send and Sync impls for Arc

why does Arc<T> requires T: Send + Sync for both Send and Sync?

unsafe impl<T: Send + Sync> Send for Arc<T> {}
unsafe impl<T: Send + Sync> Sync for Arc<T> {}

also, How should one think in general before implementing these marker traits for our own type?

3 posts - 3 participants

Read full topic

🏷️ Rust_feed