pub type ExternResult<T> = Result<T, WasmError>;
Every extern must return a WasmError in the case of failure.
WasmError
pub enum ExternResult<T> { Ok(T), Err(WasmError), }
Contains the success value
Contains the error value