Trait forest_filecoin::shim::fvm_latest::kernel::ClassifyResult

source ·
pub trait ClassifyResult: Sized {
    type Value;
    type Error;

    // Required methods
    fn or_fatal(self) -> Result<Self::Value, ExecutionError>
       where Self::Error: Into<Error>;
    fn or_error(self, code: ErrorNumber) -> Result<Self::Value, ExecutionError>
       where Self::Error: Display;

    // Provided method
    fn or_illegal_argument(self) -> Result<Self::Value, ExecutionError>
       where Self::Error: Display { ... }
}

Required Associated Types§

Required Methods§

source

fn or_fatal(self) -> Result<Self::Value, ExecutionError>
where Self::Error: Into<Error>,

source

fn or_error(self, code: ErrorNumber) -> Result<Self::Value, ExecutionError>
where Self::Error: Display,

Provided Methods§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T, E> ClassifyResult for Result<T, E>

§

type Value = T

§

type Error = E

source§

fn or_fatal( self, ) -> Result<<Result<T, E> as ClassifyResult>::Value, ExecutionError>
where <Result<T, E> as ClassifyResult>::Error: Into<Error>,

source§

fn or_error( self, code: ErrorNumber, ) -> Result<<Result<T, E> as ClassifyResult>::Value, ExecutionError>
where <Result<T, E> as ClassifyResult>::Error: Display,

Implementors§