Type Alias ambient_api::prelude::ResultEmpty

source ·
pub type ResultEmpty = Result<(), Error>;
Expand description

In Rust, functions that can fail are expected to return a Result type. ResultEmpty is a Result type that has no value and can accept any kind of error through the question-mark operator ?.

It is used as the default return type for Ambient operations that take a callback.

Aliased Type§

enum ResultEmpty {
    Ok(()),
    Err(Error),
}

Variants§

§1.0.0

Ok(())

Contains the success value

§1.0.0

Err(Error)

Contains the error value