pub struct AtomicBorrowCell<T> { /* private fields */ }Expand description
A thread-safe reference to data contained in an AtomicLendCell
AtomicBorrowCell<T> holds a pointer to data in an AtomicLendCell<T> and
checks the lender’s liveness in debug builds. It can be safely sent between threads.
Implementations§
Trait Implementations§
Source§impl<T> Clone for AtomicBorrowCell<T>
impl<T> Clone for AtomicBorrowCell<T>
Source§impl<T> Deref for AtomicBorrowCell<T>
impl<T> Deref for AtomicBorrowCell<T>
Source§impl<T> Drop for AtomicBorrowCell<T>
impl<T> Drop for AtomicBorrowCell<T>
impl<T: Sync> Send for AtomicBorrowCell<T>
impl<T: Sync> Sync for AtomicBorrowCell<T>
Auto Trait Implementations§
impl<T> Freeze for AtomicBorrowCell<T>
impl<T> RefUnwindSafe for AtomicBorrowCell<T>where
T: RefUnwindSafe,
impl<T> Unpin for AtomicBorrowCell<T>
impl<T> UnwindSafe for AtomicBorrowCell<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