pub trait TestOutcome: Sealed {
// Required method
fn is_success(&self) -> bool;
}Expand description
Indicates whether a test succeeded or failed.
This is comparable to the Termination trait in libstd, except stable and tailored towards the
needs of embedded-test. It is implemented for (), which always indicates success, and Result,
where Ok indicates success.
Required Methods§
fn is_success(&self) -> bool
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl TestOutcome for ()
impl TestOutcome for ()
fn is_success(&self) -> bool
Source§impl<T, E> TestOutcome for Result<T, E>
Available on non-crate feature defmt and non-crate feature log only.
impl<T, E> TestOutcome for Result<T, E>
Available on non-crate feature
defmt and non-crate feature log only.