Menu

Enum

DownloadDecision

kurogane::DownloadDecisionSource
#[non_exhaustive] pub enum DownloadDecision { Default, Prompt, SaveTo(PathBuf), Deny, }

The answer of App::on_download.

Variants

#Default

Kurogane’s policy, which is Prompt.

#Prompt

Asks the user with the system’s Save As dialog, the suggested name filled in; cancelling it saves nothing. A window shows one dialog at a time. A download may wait for the one before it.

#SaveTo(PathBuf)

Saves the file at this absolute path, which names the file itself, without asking, replacing a file already there. The folder is created when missing. A place whose folder cannot be made saves nothing and neither does a relative path.

#Deny

Saves nothing.

Trait implementations