Skip to main content

ScriptResult

Type Alias ScriptResult 

Source
pub type ScriptResult = Result<ScriptValue, String>;
Expand description

What a ScriptFn body hands back: a value, or the message to raise in the script that called it.

Aliased Type§

pub enum ScriptResult {
    Ok(ScriptValue),
    Err(String),
}

Variants§

§1.0.0

Ok(ScriptValue)

Contains the success value

§1.0.0

Err(String)

Contains the error value