pub struct LockDisciplineReport {
pub unprotected_accesses: usize,
pub lock_violations: usize,
pub deadlock_warnings: usize,
}Expand description
Comprehensive lock discipline report.
Summarizes all lock discipline violations found in a function or set of functions.
Fields§
§unprotected_accesses: usizeNumber of unprotected data accesses detected.
This counts instances where shared data (identified by lock analysis) is accessed outside of any locked region.
lock_violations: usizeNumber of lock/unlock violations.
This includes:
- Locks without corresponding unlocks
- Unlocks without corresponding locks
deadlock_warnings: usizeNumber of deadlock warnings.
This counts potential deadlocks from inconsistent lock ordering.
Implementations§
Trait Implementations§
Source§impl Clone for LockDisciplineReport
impl Clone for LockDisciplineReport
Source§fn clone(&self) -> LockDisciplineReport
fn clone(&self) -> LockDisciplineReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LockDisciplineReport
impl Debug for LockDisciplineReport
impl Eq for LockDisciplineReport
Source§impl PartialEq for LockDisciplineReport
impl PartialEq for LockDisciplineReport
Source§fn eq(&self, other: &LockDisciplineReport) -> bool
fn eq(&self, other: &LockDisciplineReport) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LockDisciplineReport
Auto Trait Implementations§
impl Freeze for LockDisciplineReport
impl RefUnwindSafe for LockDisciplineReport
impl Send for LockDisciplineReport
impl Sync for LockDisciplineReport
impl Unpin for LockDisciplineReport
impl UnsafeUnpin for LockDisciplineReport
impl UnwindSafe for LockDisciplineReport
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