pub enum TestResult {
Passed {
captured: Vec<CapturedOutput>,
exec_time: Duration,
},
Benchmarked {
captured: Vec<CapturedOutput>,
exec_time: Duration,
ns_iter_summ: Summary,
mb_s: usize,
},
Failed {
cause: FailureCause,
captured: Vec<CapturedOutput>,
exec_time: Duration,
},
Ignored {
captured: Vec<CapturedOutput>,
},
}Variants§
Implementations§
Source§impl TestResult
impl TestResult
pub fn passed(exec_time: Duration) -> TestResult
pub fn benchmarked( exec_time: Duration, ns_iter_summ: Summary, mb_s: usize, ) -> TestResult
pub fn failed(exec_time: Duration, cause: FailureCause) -> TestResult
pub fn ignored() -> TestResult
pub fn failure_cause(&self) -> Option<&FailureCause>
Trait Implementations§
Source§impl Clone for TestResult
impl Clone for TestResult
Source§fn clone(&self) -> TestResult
fn clone(&self) -> TestResult
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 From<SerializableTestResult> for TestResult
impl From<SerializableTestResult> for TestResult
Source§fn from(result: SerializableTestResult) -> TestResult
fn from(result: SerializableTestResult) -> TestResult
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TestResult
impl !RefUnwindSafe for TestResult
impl Send for TestResult
impl Sync for TestResult
impl Unpin for TestResult
impl UnsafeUnpin for TestResult
impl !UnwindSafe for TestResult
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