pub struct MutexBackend;
Expand description
A kernel struct mutex
lock backend.
Trait Implementations§
source§impl Backend for MutexBackend
impl Backend for MutexBackend
§type GuardState = ()
type GuardState = ()
The state required to be kept between lock and unlock.
source§unsafe fn init(
ptr: *mut Self::State,
name: *const c_char,
key: *mut lock_class_key
)
unsafe fn init( ptr: *mut Self::State, name: *const c_char, key: *mut lock_class_key )
Initialises the lock. Read more
source§unsafe fn lock(ptr: *mut Self::State) -> Self::GuardState
unsafe fn lock(ptr: *mut Self::State) -> Self::GuardState
Acquires the lock, making the caller its owner. Read more
Auto Trait Implementations§
impl RefUnwindSafe for MutexBackend
impl Send for MutexBackend
impl Sync for MutexBackend
impl Unpin for MutexBackend
impl UnwindSafe for MutexBackend
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