pub struct Spinlock { /* private fields */ }Expand description
Spinlock for mutual exclusion
Implementations§
Source§impl Spinlock
impl Spinlock
Sourcepub fn lock_guard(&self) -> SpinlockGuard<'_>
pub fn lock_guard(&self) -> SpinlockGuard<'_>
Acquire lock and return RAII guard
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Spinlock
impl RefUnwindSafe for Spinlock
impl Send for Spinlock
impl Sync for Spinlock
impl Unpin for Spinlock
impl UnsafeUnpin for Spinlock
impl UnwindSafe for Spinlock
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