pub struct SetDownloadBehavior { /* private fields */ }Expand description
Set the behavior when downloading a file. EXPERIMENTAL: This feature is experimental and may change or be removed.
Implementations§
Source§impl SetDownloadBehavior
impl SetDownloadBehavior
pub fn new(behavior: impl Into<String>) -> Self
pub fn with_browser_context_id( self, browser_context_id: impl Into<BrowserContextID>, ) -> Self
pub fn with_download_path(self, download_path: impl Into<String>) -> Self
pub fn with_events_enabled(self, events_enabled: impl Into<bool>) -> Self
Trait Implementations§
Source§impl Clone for SetDownloadBehavior
impl Clone for SetDownloadBehavior
Source§fn clone(&self) -> SetDownloadBehavior
fn clone(&self) -> SetDownloadBehavior
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Command for SetDownloadBehavior
impl Command for SetDownloadBehavior
Source§impl Debug for SetDownloadBehavior
impl Debug for SetDownloadBehavior
Auto Trait Implementations§
impl Freeze for SetDownloadBehavior
impl RefUnwindSafe for SetDownloadBehavior
impl Send for SetDownloadBehavior
impl Sync for SetDownloadBehavior
impl Unpin for SetDownloadBehavior
impl UnwindSafe for SetDownloadBehavior
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