#[non_exhaustive]pub struct LockedCommon<'wait_list, L: Lock, I, O> {
pub wait_list: &'wait_list WaitList<L, I, O>,
}
Expand description
Common functions that can work on both exclusive and shared locks.
You can never create nor hold an instance of this type — it is accessed solely through the
Deref
implementations of LockedShared
and LockedExclusive
.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.wait_list: &'wait_list WaitList<L, I, O>
The list this type locks.
Implementations§
Source§impl<'wait_list, L: Lock, I, O> LockedCommon<'wait_list, L, I, O>
impl<'wait_list, L: Lock, I, O> LockedCommon<'wait_list, L, I, O>
Trait Implementations§
Auto Trait Implementations§
impl<'wait_list, L, I, O> Freeze for LockedCommon<'wait_list, L, I, O>
impl<'wait_list, L, I, O> !RefUnwindSafe for LockedCommon<'wait_list, L, I, O>
impl<'wait_list, L, I, O> Send for LockedCommon<'wait_list, L, I, O>
impl<'wait_list, L, I, O> Sync for LockedCommon<'wait_list, L, I, O>
impl<'wait_list, L, I, O> Unpin for LockedCommon<'wait_list, L, I, O>
impl<'wait_list, L, I, O> !UnwindSafe for LockedCommon<'wait_list, L, I, O>
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