pub struct TestTimings {
pub setup: Option<Duration>,
pub execute: Option<Duration>,
pub teardown: Option<Duration>,
/* private fields */
}Expand description
Timing breakdown for test phases.
Fields§
§setup: Option<Duration>Setup phase duration.
execute: Option<Duration>Execute phase duration.
teardown: Option<Duration>Teardown phase duration.
Implementations§
Source§impl TestTimings
impl TestTimings
Sourcepub fn start_phase(&mut self)
pub fn start_phase(&mut self)
Starts timing a phase.
Sourcepub fn end_execute(&mut self)
pub fn end_execute(&mut self)
Ends the execute phase.
Sourcepub fn end_teardown(&mut self)
pub fn end_teardown(&mut self)
Ends the teardown phase.
Trait Implementations§
Source§impl Clone for TestTimings
impl Clone for TestTimings
Source§fn clone(&self) -> TestTimings
fn clone(&self) -> TestTimings
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 TestTimings
impl Debug for TestTimings
Source§impl Default for TestTimings
impl Default for TestTimings
Source§fn default() -> TestTimings
fn default() -> TestTimings
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TestTimings
impl RefUnwindSafe for TestTimings
impl Send for TestTimings
impl Sync for TestTimings
impl Unpin for TestTimings
impl UnwindSafe for TestTimings
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).