Expand description
Generic result/error helpers for Tauri command handlers.
Tauri commands surface errors to the frontend as plain Strings. Every
handler in a src-tauri package ends up writing the same
.map_err(|err| err.to_string()) boilerplate; this module centralizes it.
Traits§
- Tauri
Result Ext - Extension trait converting any
Result<T, E: Display>into aCommandResult<T>without a manual.map_err(|err| err.to_string())at every call site.
Type Aliases§
- Command
Result - 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.