pub struct RcuWeak<T: Send + Sync + 'static> { /* private fields */ }Expand description
An RCU (Read-Copy-Update) wrapper around a Weak pointer.
The weak pointer can be read and upgraded from multiple threads concurrently without blocking. When the weak pointer is replaced, reads may continue to see the old weak pointer for some period of time.
Implementations§
Source§impl<T: Send + Sync + 'static> RcuWeak<T>
impl<T: Send + Sync + 'static> RcuWeak<T>
Trait Implementations§
Auto Trait Implementations§
impl<T> !Freeze for RcuWeak<T>
impl<T> RefUnwindSafe for RcuWeak<T>
impl<T> Send for RcuWeak<T>
impl<T> Sync for RcuWeak<T>
impl<T> Unpin for RcuWeak<T>
impl<T> UnsafeUnpin for RcuWeak<T>
impl<T> UnwindSafe for RcuWeak<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