pub struct SpinMutex<T: ?Sized> { /* private fields */ }
Implementations
sourceimpl<T: ?Sized> SpinMutex<T>
impl<T: ?Sized> SpinMutex<T>
pub fn lock(&self) -> SpinMutexGuard<'_, T>
pub fn is_locked(&self) -> bool
pub fn unlock(guard: SpinMutexGuard<'_, T>)
pub unsafe fn force_unlock(&self)
pub fn try_lock(&self) -> Option<SpinMutexGuard<'_, T>>
pub fn get_mut(&mut self) -> &mut T
Trait Implementations
impl<T: ContiguousMemory> ContiguousMemory for SpinMutex<T>
impl<T: ?Sized + Send> Send for SpinMutex<T>
impl<T: ?Sized + Send> Sync for SpinMutex<T>
Auto Trait Implementations
impl<T> !RefUnwindSafe for SpinMutex<T>
impl<T: ?Sized> Unpin for SpinMutex<T>where
T: Unpin,
impl<T: ?Sized> UnwindSafe for SpinMutex<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more