Comment Comment by cbarrick > safe from a pinning perspectiveThe reason you can't get &mut T from Pin<Arc<T>> is because the mutable reference lets you move the data in safe Rust, e.g. with std::mem::swap.So getting the &mut T from a Pin<Arc<T>> is not safe from a pinning perspective. parent cbarrick 5 years ago
The reason you can't get &mut T from Pin<Arc<T>> is because the mutable reference lets you move the data in safe Rust, e.g. with std::mem::swap.
So getting the &mut T from a Pin<Arc<T>> is not safe from a pinning perspective.