pub struct BoxRef<T, C>where
T: Send + 'static,
C: RcuContext + 'static,{ /* private fields */ }Expand description
A RCU reference to a element removed from a container.
Trait Implementations§
source§impl<T, C> RcuRef<C> for BoxRef<T, C>where
T: Send,
C: RcuContext,
impl<T, C> RcuRef<C> for BoxRef<T, C>where
T: Send,
C: RcuContext,
§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§type Output = BoxRefOwned<T>
type Output = BoxRefOwned<T>
The output type after taking ownership.
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(self, context: &mut C) -> Self::Outputwhere
Self: Sized,
C: RcuContext,
fn take_ownership(self, context: &mut C) -> Self::Outputwhere
Self: Sized,
C: RcuContext,
Take ownership of the reference.
source§fn defer_cleanup(self, context: &mut C)where
Self: Sized,
C: RcuContext,
fn defer_cleanup(self, context: &mut C)where
Self: Sized,
C: RcuContext,
Configure a cleanup callback to be called after the grace period. Read more
source§fn call_cleanup(self, context: &C)
fn call_cleanup(self, context: &C)
Configure a cleanup callback to be called after the grace period. Read more
fn safe_cleanup(self)
impl<T, C> Send for BoxRef<T, C>where
T: Send,
C: RcuContext,
Auto Trait Implementations§
impl<T, C> Freeze for BoxRef<T, C>
impl<T, C> RefUnwindSafe for BoxRef<T, C>where
T: RefUnwindSafe,
C: RefUnwindSafe,
impl<T, C> !Sync for BoxRef<T, C>
impl<T, C> Unpin for BoxRef<T, C>
impl<T, C> UnwindSafe for BoxRef<T, C>where
T: RefUnwindSafe,
C: 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