Type Alias hdk::prelude::ExternResult

source ·
pub type ExternResult<T> = Result<T, WasmError>;
Expand description

Every extern must return a WasmError in the case of failure.

Aliased Type§

enum ExternResult<T> {
    Ok(T),
    Err(WasmError),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(WasmError)

Contains the error value