pub struct WatchStats {
pub total_runs: u32,
pub failed_runs: u32,
pub passed_runs: u32,
pub last_run: Option<Instant>,
pub last_duration: Option<Duration>,
pub last_failures: u32,
pub last_passed: u32,
}Expand description
Statistics tracked across watch mode re-runs.
Fields§
§total_runs: u32Total number of re-runs performed.
failed_runs: u32Number of runs that had failures.
passed_runs: u32Number of runs that passed completely.
last_run: Option<Instant>Time of the last run.
last_duration: Option<Duration>Duration of the last run.
last_failures: u32Number of tests that failed in the last run.
last_passed: u32Number of tests that passed in the last run.
Implementations§
Source§impl WatchStats
impl WatchStats
pub fn new() -> Self
Sourcepub fn record_run(&mut self, result: &TestRunResult, duration: Duration)
pub fn record_run(&mut self, result: &TestRunResult, duration: Duration)
Record the result of a test run.
Trait Implementations§
Source§impl Clone for WatchStats
impl Clone for WatchStats
Source§fn clone(&self) -> WatchStats
fn clone(&self) -> WatchStats
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 WatchStats
impl Debug for WatchStats
Source§impl Default for WatchStats
impl Default for WatchStats
Source§fn default() -> WatchStats
fn default() -> WatchStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WatchStats
impl RefUnwindSafe for WatchStats
impl Send for WatchStats
impl Sync for WatchStats
impl Unpin for WatchStats
impl UnsafeUnpin for WatchStats
impl UnwindSafe for WatchStats
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