Enum
FileDialogDecision
#[non_exhaustive]
pub enum FileDialogDecision {
Default,
Cancel,
Files(Vec<PathBuf>),
Later,
}The answer of App::on_file_dialog.
Variants
#Default
Chromium’s own dialog, the system’s file chooser.
#Cancel
No dialog. The page is told the user cancelled.
#Files(Vec<PathBuf>)
These files, as if the user chose them. The page reads them. An
Open or Save
dialog takes the first, an
OpenFolder one a folder. No file is
Cancel.
#Later
The FileDialogResponder the hook took with
FileDialogRequest::responder answers later; the page waits until
then. Without a responder kept, the dialog is cancelled at once.
Trait implementations
impl Clone for FileDialogDecisionimpl Debug for FileDialogDecisionimpl Default for FileDialogDecisionimpl Eq for FileDialogDecisionimpl PartialEq for FileDialogDecision