pub enum DownloadSetting {
Off,
On,
Options(Box<DownloadOptions>),
}Expand description
The caller’s downloads option.
The three-way shape mirrors the true | false | {…} the JavaScript and
Python packages accept, so the same configuration reads the same way in all
three languages.
Variants§
Off
Downloads are not managed. The browser’s own behavior is untouched.
On
Manage downloads with the defaults.
Options(Box<DownloadOptions>)
Manage downloads with these options.
Trait Implementations§
Source§impl Clone for DownloadSetting
impl Clone for DownloadSetting
Source§fn clone(&self) -> DownloadSetting
fn clone(&self) -> DownloadSetting
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DownloadSetting
impl Debug for DownloadSetting
Source§impl Default for DownloadSetting
impl Default for DownloadSetting
Source§fn default() -> DownloadSetting
fn default() -> DownloadSetting
Returns the “default value” for a type. Read more
Source§impl From<DownloadOptions> for DownloadSetting
impl From<DownloadOptions> for DownloadSetting
Source§fn from(options: DownloadOptions) -> Self
fn from(options: DownloadOptions) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for DownloadSetting
impl !UnwindSafe for DownloadSetting
impl Freeze for DownloadSetting
impl Send for DownloadSetting
impl Sync for DownloadSetting
impl Unpin for DownloadSetting
impl UnsafeUnpin for DownloadSetting
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