Struct arc_atomic::AtomicArc
source · pub struct AtomicArc<T> { /* private fields */ }
Expand description
An atomic pointer to an Arc
.
This pointer provides a safe atomic pointer to an Arc
. Each load will
clone the Arc
ensuring that concurrent reads/writes will only drop the
value when all references are decremented. The inner Arc
can be swapped
atomically with another value.
This value is not itself cloneable and can itself be wrapped in an Arc
.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> RefUnwindSafe for AtomicArc<T>
impl<T> Send for AtomicArc<T>
impl<T> Sync for AtomicArc<T>
impl<T> Unpin for AtomicArc<T>
impl<T> UnwindSafe for AtomicArc<T>where
T: RefUnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more