Result

Type Alias Result 

Source
pub type Result<T, E = OcallError> = Result<T, E>;

Aliased Type§

pub enum Result<T, E = OcallError> {
    Ok(T),
    Err(E),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(E)

Contains the error value

Trait Implementations§

Source§

impl<A, B> RetEncode for Result<A, B>
where A: I32Convertible, B: I32Convertible,

Source§

fn encode_ret(self) -> IntRet

Encode the ocall return value into a IntRet