Skip to main content

Returned

Trait Returned 

Source
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§

Source

fn value(value: Self::Value) -> Self

Source

fn error(code: Errno) -> Self

Source

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".

Implementors§