Skip to main content

Result

Type Alias Result 

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

A result of either Ok(T) or an Err(Error).

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

Trait Implementations§

Source§

impl<T, E> ComponentType for Result<T, E>

Available on crate features component-model and runtime only.
Source§

impl<T, E> Lift for Result<T, E>
where T: Lift, E: Lift,

Available on crate features component-model and runtime only.
Source§

impl<T, E> Lower for Result<T, E>
where T: Lower, E: Lower,

Available on crate features component-model and runtime only.
Source§

impl<T> WasmRet for Result<T>
where T: WasmRet,

Available on crate feature runtime only.