pub struct Replaced<T> { /* private fields */ }Expand description
A pointer that has been displaced from a AtomicPtr and must be retired.
This type cannot be dereferenced — the value is no longer safely accessible
without a hazard guard. The only valid operation is to retire
it through a Domain, which schedules it for deferred reclamation.
Dropping a Replaced without retiring it will leak the allocation.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Replaced<T>
impl<T> RefUnwindSafe for Replaced<T>where
T: RefUnwindSafe,
impl<T> !Send for Replaced<T>
impl<T> !Sync for Replaced<T>
impl<T> Unpin for Replaced<T>
impl<T> UnsafeUnpin for Replaced<T>
impl<T> UnwindSafe for Replaced<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