pub struct Lock<T: ?Sized, B: Backend> { /* private fields */ }
Expand description
A mutual exclusion primitive.
Exposes one of the kernel locking primitives. Which one is exposed depends on the lock
Backend
specified as the generic parameter B
.
Implementations§
Trait Implementations§
impl<T: ?Sized + Send, B: Backend> Send for Lock<T, B>
impl<T: ?Sized + Send, B: Backend> Sync for Lock<T, B>
Auto Trait Implementations§
impl<T, B> !RefUnwindSafe for Lock<T, B>
impl<T: ?Sized, B> UnwindSafe for Lock<T, B>where T: UnwindSafe, <B as Backend>::State: 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