pub trait Returned: Copy + Eq {
type Value;
type Invalid;
// Required methods
fn value(value: Self::Value) -> Self;
fn error(code: Errno) -> Self;
fn invalid(invalid: Self::Invalid) -> Self;
}Expand description
Exact native result rejected by an operation’s completion contract.
Required Associated Types§
Required Methods§
fn value(value: Self::Value) -> Self
fn error(code: Errno) -> Self
fn invalid(invalid: Self::Invalid) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".