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