Type Alias FunctionResult

Source
pub type FunctionResult<'a> = Result<Return<'a>, FunctionError>;
Available on crate feature functions only.
Expand description

The result of calling a DynamicFunction or DynamicFunctionMut.

Returns Ok(value) if the function was called successfully, where value is the Return value of the function.

Aliased Type§

pub enum FunctionResult<'a> {
    Ok(Return<'a>),
    Err(FunctionError),
}

Variants§

§1.0.0

Ok(Return<'a>)

Contains the success value

§1.0.0

Err(FunctionError)

Contains the error value