Struct keos::spin_lock::SpinLockGuard
source · pub struct SpinLockGuard<'a, T>where
T: 'a + ?Sized,{ /* private fields */ }
Expand description
An RAII implementation of a “scoped lock” of a spinlock. When this structure is dropped (falls out of scope), the lock will be unlocked.
The data protected by the mutex can be accessed through this guard via its
[Deref
] and [DerefMut
] implementations.
This structure is created by the lock
and try_lock
methods on
SpinLock
.
Trait Implementations§
source§impl<T> Deref for SpinLockGuard<'_, T>where
T: ?Sized,
impl<T> Deref for SpinLockGuard<'_, T>where T: ?Sized,
Auto Trait Implementations§
impl<'a, T> !RefUnwindSafe for SpinLockGuard<'a, T>
impl<'a, T> !Send for SpinLockGuard<'a, T>
impl<'a, T: ?Sized> Sync for SpinLockGuard<'a, T>where T: Sync,
impl<'a, T: ?Sized> Unpin for SpinLockGuard<'a, T>
impl<'a, T> !UnwindSafe for SpinLockGuard<'a, T>
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
const: unstable§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more