pub struct DownloadStartingArgs(/* private fields */);Expand description
Details about a download that is about to start.
Implementations§
Source§impl DownloadStartingArgs
impl DownloadStartingArgs
Sourcepub fn download_operation(&self) -> Result<DownloadOperation>
pub fn download_operation(&self) -> Result<DownloadOperation>
Returns the DownloadOperation for the download.
Sourcepub fn is_cancelled(&self) -> bool
pub fn is_cancelled(&self) -> bool
Returns true if the download is currently marked to be canceled.
Sourcepub fn set_cancel(&self, cancel: bool) -> Result<()>
pub fn set_cancel(&self, cancel: bool) -> Result<()>
Sets whether the download is canceled.
Sourcepub fn result_file_path(&self) -> String
pub fn result_file_path(&self) -> String
Returns the absolute path the download will be written to.
Sourcepub fn set_result_file_path(&self, path: &str) -> Result<()>
pub fn set_result_file_path(&self, path: &str) -> Result<()>
Overrides the absolute path the download is written to, choosing a custom destination instead of the default.
Sourcepub fn is_handled(&self) -> bool
pub fn is_handled(&self) -> bool
Returns true if the host has marked the download as handled,
suppressing the default download dialog.
Sourcepub fn set_handled(&self, handled: bool) -> Result<()>
pub fn set_handled(&self, handled: bool) -> Result<()>
Marks the download as handled, suppressing the default download dialog so the host can present its own UI.
Auto Trait Implementations§
impl !Send for DownloadStartingArgs
impl !Sync for DownloadStartingArgs
impl Freeze for DownloadStartingArgs
impl RefUnwindSafe for DownloadStartingArgs
impl Unpin for DownloadStartingArgs
impl UnsafeUnpin for DownloadStartingArgs
impl UnwindSafe for DownloadStartingArgs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more