pub struct RawSpin { /* private fields */ }Expand description
A very simple spin-lock.
Consists of a single atomic boolean that is set to true when the lock is acquired and false when it is released. Locks are not fair and not ordered.
Implementations§
Trait Implementations§
Source§impl RawMutex for RawSpin
impl RawMutex for RawSpin
Source§type GuardMarker = GuardSend
type GuardMarker = GuardSend
Marker type which determines whether a lock guard should be
Send. Use
one of the GuardSend or GuardNoSend helper types here.Auto Trait Implementations§
impl !Freeze for RawSpin
impl RefUnwindSafe for RawSpin
impl Send for RawSpin
impl Sync for RawSpin
impl Unpin for RawSpin
impl UnwindSafe for RawSpin
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