Skip to main content

CaughtResult

Type Alias CaughtResult 

Source
pub type CaughtResult<'js, T> = Result<T, CaughtError<'js>>;
Expand description

Result type containing an the JavaScript exception if there was one.

Aliased Type§

pub enum CaughtResult<'js, T> {
    Ok(T),
    Err(CaughtError<'js>),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(CaughtError<'js>)

Contains the error value