struct LockState {
last_acquired: Option<(LockRank, &'static Location<'static>)>,
depth: u32,
}
Expand description
Per-thread state for the deadlock checker.
Fields§
§last_acquired: Option<(LockRank, &'static Location<'static>)>
The last lock we acquired, and where.
depth: u32
The number of locks currently held.
This is used to enforce stack-like lock acquisition and release.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LockState
impl RefUnwindSafe for LockState
impl Send for LockState
impl Sync for LockState
impl Unpin for LockState
impl UnwindSafe for LockState
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)