Skip to main content

LauncherResult

Type Alias LauncherResult 

Source
pub type LauncherResult<T> = Result<T, FilePickerError>;
Expand description

What a launcher hands back once the chooser resolves.

Cancellation is Ok with an empty selection, not an error: the user declining is an outcome, not a failure.

Aliased Type§

pub enum LauncherResult<T> {
    Ok(T),
    Err(FilePickerError),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(FilePickerError)

Contains the error value