Skip to main content

Result

Type Alias Result 

Source
pub type Result<T, E = Error> = Result<T, E>;
Expand description

The result type used by every fallible operation in the kit. The error type defaults to Error, which is what the kit’s own APIs return; the parameter stays open so host code can reuse the alias with its own error type.

Aliased Type§

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

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(E)

Contains the error value