pub trait Fallible: TaskName {
type Ok: Send + 'static;
type Err: Send + 'static;
// Required methods
fn from_ok(value: Self::Ok) -> Self::Output;
fn from_err(error: Self::Err) -> Self::Output;
}Expand description
A name whose output is a Result, so a test can fail it with the error type. Implemented
for every such name; asking to fail any other name does not compile.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".