Skip to content

Glossary: Desktop Apps with Electron and Tauri

Result

Also written: Ok, Err, Result<T, String>

A Rust type for either success (`Ok`) or failure (`Err`). A Tauri command's `Ok` resolves the page's promise and `Err` rejects it.

Where the book teaches it

Related terms

Command (Tauri)Rust keywords (fn, let mut, use)