Skip to main content

JSResult

Type Alias JSResult 

Source
pub type JSResult = Result<JSObject, JSObject>;
Expand description

The result of a JS function.

The Err variant will be returned if

  • There is an exception
  • An error type is returned

Aliased Type§

pub enum JSResult {
    Ok(Value),
    Err(Value),
}

Variants§

§1.0.0

Ok(Value)

Contains the success value

§1.0.0

Err(Value)

Contains the error value