Trait RetEncode

Source
pub trait RetEncode {
    // Required method
    fn encode_ret(self) -> IntRet;
}
Expand description

Trait for types that can be encoded to a return value of a ocall.

Required Methods§

Source

fn encode_ret(self) -> IntRet

Encode the ocall return value into a IntRet

Implementors§

Source§

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