pub struct Ref<K, V, F>{ /* private fields */ }Expand description
An owned RCU reference to a element removed from an RcuHashMap.
Implementations§
Trait Implementations§
Source§impl<K, V, F> RcuRef<F> for Ref<K, V, F>
§Safety
The memory reclamation upon dropping is properly deferred after the RCU grace period.
impl<K, V, F> RcuRef<F> for Ref<K, V, F>
§Safety
The memory reclamation upon dropping is properly deferred after the RCU grace period.
Source§unsafe fn take_ownership_unchecked(self) -> Self::Output
unsafe fn take_ownership_unchecked(self) -> Self::Output
Take ownership of the reference. Read more
Source§fn take_ownership<C>(self, context: &mut C) -> Self::Outputwhere
Self: Sized,
C: RcuContext<Flavor = F>,
fn take_ownership<C>(self, context: &mut C) -> Self::Outputwhere
Self: Sized,
C: RcuContext<Flavor = F>,
Take ownership of the reference.
Source§fn defer_cleanup<C>(self, context: &mut C)where
Self: Sized,
C: RcuDeferContext<Flavor = F>,
fn defer_cleanup<C>(self, context: &mut C)where
Self: Sized,
C: RcuDeferContext<Flavor = F>,
Configure a cleanup callback to be called after the grace period. Read more
Source§fn call_cleanup<C>(self, context: &C)
fn call_cleanup<C>(self, context: &C)
Configure a cleanup callback to be called after the grace period. Read more
fn safe_cleanup(self)
impl<K, V, F> Send for Ref<K, V, F>
Auto Trait Implementations§
impl<K, V, F> !Sync for Ref<K, V, F>
impl<K, V, F> Freeze for Ref<K, V, F>
impl<K, V, F> RefUnwindSafe for Ref<K, V, F>
impl<K, V, F> Unpin for Ref<K, V, F>
impl<K, V, F> UnsafeUnpin for Ref<K, V, F>
impl<K, V, F> UnwindSafe for Ref<K, V, F>
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