pub struct SystemCheckResults {
pub results: BTreeMap<TestCategory, Vec<TestInfo>>,
pub total_duration: Duration,
pub started_at: Instant,
pub config: SystemCheckConfig,
}Expand description
Comprehensive results of all system check tests
Fields§
§results: BTreeMap<TestCategory, Vec<TestInfo>>Results organized by test category
total_duration: DurationOverall duration of all tests
started_at: InstantTimestamp when the system check started
config: SystemCheckConfigConfiguration used for the tests
Implementations§
Source§impl SystemCheckResults
impl SystemCheckResults
pub fn new(config: SystemCheckConfig) -> Self
Sourcepub fn add_test(&mut self, category: TestCategory, test: TestInfo)
pub fn add_test(&mut self, category: TestCategory, test: TestInfo)
Add a test result to the specified category
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Get the overall success status
Sourcepub fn passed_count(&self) -> usize
pub fn passed_count(&self) -> usize
Get count of passed tests
Sourcepub fn failed_count(&self) -> usize
pub fn failed_count(&self) -> usize
Get count of failed tests
Sourcepub fn skipped_count(&self) -> usize
pub fn skipped_count(&self) -> usize
Get count of skipped tests
Sourcepub fn total_count(&self) -> usize
pub fn total_count(&self) -> usize
Get total count of tests
Sourcepub fn first_failure(&self) -> Option<&TestInfo>
pub fn first_failure(&self) -> Option<&TestInfo>
Get the first failed test, if any
Sourcepub fn get_category_results(
&self,
category: TestCategory,
) -> Option<&Vec<TestInfo>>
pub fn get_category_results( &self, category: TestCategory, ) -> Option<&Vec<TestInfo>>
Get results for a specific category
Sourcepub fn category_has_failures(&self, category: TestCategory) -> bool
pub fn category_has_failures(&self, category: TestCategory) -> bool
Check if a specific category has any failures
Trait Implementations§
Source§impl Clone for SystemCheckResults
impl Clone for SystemCheckResults
Source§fn clone(&self) -> SystemCheckResults
fn clone(&self) -> SystemCheckResults
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 SystemCheckResults
impl Debug for SystemCheckResults
Source§impl<'de> Deserialize<'de> for SystemCheckResults
impl<'de> Deserialize<'de> for SystemCheckResults
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SystemCheckResults
impl RefUnwindSafe for SystemCheckResults
impl Send for SystemCheckResults
impl Sync for SystemCheckResults
impl Unpin for SystemCheckResults
impl UnwindSafe for SystemCheckResults
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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