pub struct TemporalAnalyzer {
pub instances: Vec<TemporalCouplingInstance>,
pub stats: TemporalCouplingStats,
/* private fields */
}Expand description
Temporal coupling analyzer
Fields§
§instances: Vec<TemporalCouplingInstance>Detected instances
stats: TemporalCouplingStatsStatistics
Implementations§
Source§impl TemporalAnalyzer
impl TemporalAnalyzer
pub fn new() -> Self
Sourcepub fn set_module(&mut self, module: String)
pub fn set_module(&mut self, module: String)
Set current module context
Sourcepub fn record_call(&mut self, method_name: &str)
pub fn record_call(&mut self, method_name: &str)
Record a method/function call
Sourcepub fn record_function_def(&mut self, function_name: &str)
pub fn record_function_def(&mut self, function_name: &str)
Record a function definition
Sourcepub fn record_drop_impl(&mut self, type_name: &str)
pub fn record_drop_impl(&mut self, type_name: &str)
Record a Drop impl
Sourcepub fn record_guard_usage(&mut self, guard_type: &str)
pub fn record_guard_usage(&mut self, guard_type: &str)
Record a guard usage
Sourcepub fn record_async_spawn(&mut self, spawn_type: &str)
pub fn record_async_spawn(&mut self, spawn_type: &str)
Record an async spawn
Sourcepub fn record_async_join(&mut self, join_type: &str)
pub fn record_async_join(&mut self, join_type: &str)
Record an async join
Sourcepub fn record_unsafe_alloc(&mut self, operation: &str)
pub fn record_unsafe_alloc(&mut self, operation: &str)
Record unsafe allocation
Sourcepub fn record_builder_pattern(&mut self, type_name: &str, methods: Vec<String>)
pub fn record_builder_pattern(&mut self, type_name: &str, methods: Vec<String>)
Record builder pattern
Sourcepub fn high_severity_instances(&self) -> Vec<&TemporalCouplingInstance>
pub fn high_severity_instances(&self) -> Vec<&TemporalCouplingInstance>
Get high severity instances
Trait Implementations§
Source§impl Debug for TemporalAnalyzer
impl Debug for TemporalAnalyzer
Source§impl Default for TemporalAnalyzer
impl Default for TemporalAnalyzer
Source§fn default() -> TemporalAnalyzer
fn default() -> TemporalAnalyzer
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TemporalAnalyzer
impl RefUnwindSafe for TemporalAnalyzer
impl Send for TemporalAnalyzer
impl Sync for TemporalAnalyzer
impl Unpin for TemporalAnalyzer
impl UnwindSafe for TemporalAnalyzer
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> 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