Struct spinlock::BaseSpinLockGuard
source · pub struct BaseSpinLockGuard<'a, G: BaseGuard, T: ?Sized + 'a> { /* private fields */ }
Expand description
A guard that provides mutable data access.
When the guard falls out of scope it will release the lock.
Trait Implementations§
source§impl<'a, G: BaseGuard, T: ?Sized> Drop for BaseSpinLockGuard<'a, G, T>
impl<'a, G: BaseGuard, T: ?Sized> Drop for BaseSpinLockGuard<'a, G, T>
source§fn drop(&mut self)
fn drop(&mut self)
The dropping of the BaseSpinLockGuard
will release the lock it was
created from.
Auto Trait Implementations§
impl<'a, G, T: ?Sized> RefUnwindSafe for BaseSpinLockGuard<'a, G, T>
impl<'a, G, T> !Send for BaseSpinLockGuard<'a, G, T>
impl<'a, G, T> !Sync for BaseSpinLockGuard<'a, G, T>
impl<'a, G, T: ?Sized> Unpin for BaseSpinLockGuard<'a, G, T>
impl<'a, G, T: ?Sized> UnwindSafe for BaseSpinLockGuard<'a, G, T>
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