Skip to main content

CommandResult

Type Alias CommandResult 

Source
pub type CommandResult<T> = Result<T, String>;
Expand description

The result shape every #[tauri::command] handler in a Soma-derived desktop app should return: Ok(T) on success, or a display-formatted error string the frontend can show directly.

Aliased Type§

pub enum CommandResult<T> {
    Ok(T),
    Err(String),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(String)

Contains the error value