#[non_exhaustive]pub struct UnprotectedGuard;
Expand description
A dummy guard object.
See unprotected
for details.
Trait Implementations§
Source§impl Clone for UnprotectedGuard
impl Clone for UnprotectedGuard
Source§fn clone(&self) -> UnprotectedGuard
fn clone(&self) -> UnprotectedGuard
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for UnprotectedGuard
impl Debug for UnprotectedGuard
Source§impl Guard for UnprotectedGuard
impl Guard for UnprotectedGuard
Source§fn protect<T: AsLink>(&self, ptr: &AtomicPtr<T>, ordering: Ordering) -> *mut T
fn protect<T: AsLink>(&self, ptr: &AtomicPtr<T>, ordering: Ordering) -> *mut T
Loads the pointer directly, using the given ordering.
Source§unsafe fn defer_retire<T: AsLink>(
&self,
ptr: *mut T,
reclaim: unsafe fn(*mut Link),
)
unsafe fn defer_retire<T: AsLink>( &self, ptr: *mut T, reclaim: unsafe fn(*mut Link), )
Reclaims the pointer immediately.
Source§fn belongs_to(&self, _collector: &Collector) -> bool
fn belongs_to(&self, _collector: &Collector) -> bool
Unprotected guards aren’t tied to a specific collector, so this always
returns true
.
Auto Trait Implementations§
impl Freeze for UnprotectedGuard
impl RefUnwindSafe for UnprotectedGuard
impl Send for UnprotectedGuard
impl Sync for UnprotectedGuard
impl Unpin for UnprotectedGuard
impl UnwindSafe for UnprotectedGuard
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