pub enum FileDialogResult {
Chosen {
paths: Vec<String>,
filter: Option<usize>,
},
Cancelled,
Unavailable,
}Expand description
How a dialog ended.
Variants§
Chosen
The user chose. paths holds at least one absolute path, exactly as the platform
gave it. In a browser, which gives a page no paths, each entry is a reference to a
file the Renderer holds instead, written webfile:<handle>/<name>; read and write
what was chosen through FileDialogResult::files on every platform rather than
taking the entries apart. filter is the position of the filter that was in use,
when the request carried filters and the platform says which one it was.
Cancelled
The user closed the dialog, or the window it belonged to went away while it was open.
This run cannot show a dialog: the platform has none yet, the window does not exist, or the answer could not be delivered whole. Not an error, and not a cancel.
Implementations§
Source§impl FileDialogResult
impl FileDialogResult
Sourcepub fn files(&self) -> Vec<PickedFile>
pub fn files(&self) -> Vec<PickedFile>
What was chosen, as files to read and write: in the same order as paths and as
many, or none when the dialog did not end in a choice.