pub struct SpinMutex<T> { /* private fields */ }Expand description
A spin style mutex implementation without handle thread-specific data.
Implementations§
Trait Implementations§
Source§impl<T> Lockable for SpinMutex<T>
impl<T> Lockable for SpinMutex<T>
Source§type GuardMut<'a> = SpinMutexGuard<'a, T>
where
Self: 'a
type GuardMut<'a> = SpinMutexGuard<'a, T> where Self: 'a
RAII scoped lock guard type.
Source§impl<T> LockableNew for SpinMutex<T>
impl<T> LockableNew for SpinMutex<T>
impl<T: Send> Send for SpinMutex<T>
impl<T: Send> Sync for SpinMutex<T>
Auto Trait Implementations§
impl<T> !Freeze for SpinMutex<T>
impl<T> !RefUnwindSafe for SpinMutex<T>
impl<T> Unpin for SpinMutex<T>where
T: Unpin,
impl<T> UnwindSafe for SpinMutex<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