pub struct RawMutex<const SHM: bool>(/* private fields */);
Expand description
An implementation of lock_api::RawMutex
.
All of this RawMutex
’s methods are in its implementation of
lock_api::RawMutex
. To import that trait without conflicting
with this RawMutex
type, use:
use rustix_futex_sync::lock_api::RawMutex as _;
Trait Implementations§
Source§impl<const SHM: bool> RawMutex for RawMutex<SHM>
impl<const SHM: bool> RawMutex for RawMutex<SHM>
Source§type GuardMarker = GuardNoSend
type GuardMarker = GuardNoSend
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<const SHM: bool> !Freeze for RawMutex<SHM>
impl<const SHM: bool> RefUnwindSafe for RawMutex<SHM>
impl<const SHM: bool> Send for RawMutex<SHM>
impl<const SHM: bool> Sync for RawMutex<SHM>
impl<const SHM: bool> Unpin for RawMutex<SHM>
impl<const SHM: bool> UnwindSafe for RawMutex<SHM>
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