pub struct DependencyStatistics {
pub total_components: u64,
pub total_dependencies: u64,
pub resolution_attempts: u64,
pub successful_resolutions: u64,
pub cache_hits: u64,
pub cache_misses: u64,
pub circular_dependencies_detected: u64,
pub average_resolution_time: Duration,
}Expand description
Dependency statistics
Fields§
§total_components: u64Total components in dependency graph
total_dependencies: u64Total dependencies
resolution_attempts: u64Resolution attempts
successful_resolutions: u64Successful resolutions
cache_hits: u64Cache hits
cache_misses: u64Cache misses
circular_dependencies_detected: u64Circular dependencies detected
average_resolution_time: DurationAverage resolution time
Implementations§
Source§impl DependencyStatistics
impl DependencyStatistics
pub fn new() -> Self
Sourcepub fn cache_hit_rate(&self) -> f64
pub fn cache_hit_rate(&self) -> f64
Get cache hit rate
Sourcepub fn resolution_success_rate(&self) -> f64
pub fn resolution_success_rate(&self) -> f64
Get resolution success rate
Trait Implementations§
Source§impl Clone for DependencyStatistics
impl Clone for DependencyStatistics
Source§fn clone(&self) -> DependencyStatistics
fn clone(&self) -> DependencyStatistics
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 moreSource§impl Debug for DependencyStatistics
impl Debug for DependencyStatistics
Auto Trait Implementations§
impl Freeze for DependencyStatistics
impl RefUnwindSafe for DependencyStatistics
impl Send for DependencyStatistics
impl Sync for DependencyStatistics
impl Unpin for DependencyStatistics
impl UnwindSafe for DependencyStatistics
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