pub struct RcuRefBox<T, F>{ /* private fields */ }Expand description
Defines a RCU reference to a element removed from a container.
Trait Implementations§
Source§impl<T, F> RcuRef<F> for RcuRefBox<T, F>
§Safety
- The underlying reference is cleaned up upon dropping.
- There may be immutable borrows to the underlying reference.
- There cannot be mutable borrows to the underlying reference.
impl<T, F> RcuRef<F> for RcuRefBox<T, F>
§Safety
- The underlying reference is cleaned up upon dropping.
- There may be immutable borrows to the underlying reference.
- There cannot be mutable borrows to the underlying reference.
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<T, F> Send for RcuRefBox<T, F>
Auto Trait Implementations§
impl<T, F> Freeze for RcuRefBox<T, F>
impl<T, F> RefUnwindSafe for RcuRefBox<T, F>where
T: RefUnwindSafe,
F: RefUnwindSafe,
impl<T, F> !Sync for RcuRefBox<T, F>
impl<T, F> Unpin for RcuRefBox<T, F>
impl<T, F> UnwindSafe for RcuRefBox<T, F>where
T: RefUnwindSafe,
F: 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