pub(crate) struct TryLock<T> {
locked: AtomicBool,
data: UnsafeCell<T>,
}
Fields§
§locked: AtomicBool
§data: UnsafeCell<T>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> !Freeze for TryLock<T>
impl<T> !RefUnwindSafe for TryLock<T>
impl<T> Unpin for TryLock<T>where
T: Unpin,
impl<T> UnwindSafe for TryLock<T>where
T: UnwindSafe,
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