pub enum TestResult<Panic = Box<dyn Any + Send>> {
Passed {
captured: Vec<CapturedOutput>,
exec_time: Duration,
},
Benchmarked {
captured: Vec<CapturedOutput>,
exec_time: Duration,
ns_iter_summ: Summary,
mb_s: usize,
},
Failed {
panic: Panic,
captured: Vec<CapturedOutput>,
exec_time: Duration,
},
Ignored {
captured: Vec<CapturedOutput>,
},
}
Variants§
Implementations§
Source§impl<Panic> TestResult<Panic>
impl<Panic> TestResult<Panic>
pub fn passed(exec_time: Duration) -> TestResult<Panic>
pub fn benchmarked( exec_time: Duration, ns_iter_summ: Summary, mb_s: usize, ) -> TestResult<Panic>
pub fn failed(exec_time: Duration, panic: Panic) -> TestResult<Panic>
pub fn ignored() -> TestResult<Panic>
Source§impl TestResult
impl TestResult
pub fn clone(&self) -> TestResult<String>
Trait Implementations§
Source§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<Panic> Freeze for TestResult<Panic>where
Panic: Freeze,
impl<Panic> RefUnwindSafe for TestResult<Panic>where
Panic: RefUnwindSafe,
impl<Panic> Send for TestResult<Panic>where
Panic: Send,
impl<Panic> Sync for TestResult<Panic>where
Panic: Sync,
impl<Panic> Unpin for TestResult<Panic>where
Panic: Unpin,
impl<Panic> UnwindSafe for TestResult<Panic>where
Panic: UnwindSafe,
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