pub struct HappensBeforeResult {
pub concurrent_pairs: Vec<(TraceEvent, TraceEvent)>,
pub total_events: usize,
pub conflicts_detected: usize,
}Expand description
Result of happens-before analysis on trace events.
Contains pairs of events that are concurrent (potential data races) and summary statistics about the analysis.
§Fields
concurrent_pairs- Pairs of events accessing the same location concurrentlytotal_events- Total number of events analyzedconflicts_detected- Number of concurrent pairs (potential data races)
Fields§
§concurrent_pairs: Vec<(TraceEvent, TraceEvent)>Pairs of events that access the same memory location concurrently. Each pair represents a potential data race.
total_events: usizeTotal number of events in the trace.
conflicts_detected: usizeNumber of concurrent pairs detected (potential data races).
Implementations§
Trait Implementations§
Source§impl Clone for HappensBeforeResult
impl Clone for HappensBeforeResult
Source§fn clone(&self) -> HappensBeforeResult
fn clone(&self) -> HappensBeforeResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for HappensBeforeResult
impl RefUnwindSafe for HappensBeforeResult
impl Send for HappensBeforeResult
impl Sync for HappensBeforeResult
impl Unpin for HappensBeforeResult
impl UnwindSafe for HappensBeforeResult
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more