pub struct WordLock<E> { /* private fields */ }Expand description
lock_api::RawMutex implementation of parking_lot’s WordLock.
Trait Implementations§
Source§impl<E: ThreadEvent> RawMutex for WordLock<E>
impl<E: ThreadEvent> RawMutex for WordLock<E>
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.Source§impl<E: ThreadEvent> RawMutexFair for WordLock<E>
impl<E: ThreadEvent> RawMutexFair for WordLock<E>
impl<E: Send> Send for WordLock<E>
impl<E: Sync> Sync for WordLock<E>
Auto Trait Implementations§
impl<E> !Freeze for WordLock<E>
impl<E> RefUnwindSafe for WordLock<E>where
E: RefUnwindSafe,
impl<E> Unpin for WordLock<E>where
E: Unpin,
impl<E> UnwindSafe for WordLock<E>where
E: 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