Result

Type Alias Result 

Source
pub type Result<T, E = Error> = Result<T, E>;
Available on crate feature wasip3-unstable only.
Expand description

A alias for std::result::Result that uses Error as the default error type.

This allows functions throughout the crate to return Result<T> instead of writing out Result<T, Error> explicitly.

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