pub struct SetDownloadBehaviorBuilder { /* private fields */ }Expand description
Builder for SetDownloadBehavior.
Implementations§
Source§impl SetDownloadBehaviorBuilder
impl SetDownloadBehaviorBuilder
Sourcepub fn behavior<VALUE: Into<SetDownloadBehaviorBehaviorOption>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn behavior<VALUE: Into<SetDownloadBehaviorBehaviorOption>>( &mut self, value: VALUE, ) -> &mut Self
Whether to allow all or deny all download requests, or use default Chrome behavior if available (otherwise deny).
Sourcepub fn download_path<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn download_path<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The default path to save downloaded files to. This is required if behavior is set to ‘allow’
Sourcepub fn build(
&self,
) -> Result<SetDownloadBehavior, SetDownloadBehaviorBuilderError>
pub fn build( &self, ) -> Result<SetDownloadBehavior, SetDownloadBehaviorBuilderError>
Trait Implementations§
Source§impl Clone for SetDownloadBehaviorBuilder
impl Clone for SetDownloadBehaviorBuilder
Source§fn clone(&self) -> SetDownloadBehaviorBuilder
fn clone(&self) -> SetDownloadBehaviorBuilder
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 moreAuto Trait Implementations§
impl Freeze for SetDownloadBehaviorBuilder
impl RefUnwindSafe for SetDownloadBehaviorBuilder
impl Send for SetDownloadBehaviorBuilder
impl Sync for SetDownloadBehaviorBuilder
impl Unpin for SetDownloadBehaviorBuilder
impl UnsafeUnpin for SetDownloadBehaviorBuilder
impl UnwindSafe for SetDownloadBehaviorBuilder
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