pub struct FirefoxPreferences { /* private fields */ }
Implementations§
Source§impl FirefoxPreferences
impl FirefoxPreferences
pub fn new() -> Self
Sourcepub fn set<T>(&mut self, key: &str, value: T) -> WebDriverResult<()>where
T: Serialize,
pub fn set<T>(&mut self, key: &str, value: T) -> WebDriverResult<()>where
T: Serialize,
Sets the specified firefox preference. This is a helper method for the various specific option methods.
Sourcepub fn unset(&mut self, key: &str) -> WebDriverResult<()>
pub fn unset(&mut self, key: &str) -> WebDriverResult<()>
Unsets the specified firefox preference. This is a helper method for the various specific option methods.
Sourcepub fn set_accept_untrusted_certs(&mut self, value: bool) -> WebDriverResult<()>
pub fn set_accept_untrusted_certs(&mut self, value: bool) -> WebDriverResult<()>
Sets accept untrusted certs
Sourcepub fn unset_accept_untrusted_certs(&mut self) -> WebDriverResult<()>
pub fn unset_accept_untrusted_certs(&mut self) -> WebDriverResult<()>
Unsets accept untrusted certs
Sourcepub fn set_assume_untrusted_issuer(
&mut self,
value: bool,
) -> WebDriverResult<()>
pub fn set_assume_untrusted_issuer( &mut self, value: bool, ) -> WebDriverResult<()>
Sets assume untrusted issuer
Sourcepub fn unset_assume_untrusted_issuer(&mut self) -> WebDriverResult<()>
pub fn unset_assume_untrusted_issuer(&mut self) -> WebDriverResult<()>
Unsets assume untrusted issuer
Sourcepub fn set_log_driver(
&mut self,
value: FirefoxProfileLogDriver,
) -> WebDriverResult<()>
pub fn set_log_driver( &mut self, value: FirefoxProfileLogDriver, ) -> WebDriverResult<()>
Sets the log driver
Sourcepub fn unset_log_driver(&mut self) -> WebDriverResult<()>
pub fn unset_log_driver(&mut self) -> WebDriverResult<()>
Unsets the log driver
Sourcepub fn set_log_file(&mut self, value: String) -> WebDriverResult<()>
pub fn set_log_file(&mut self, value: String) -> WebDriverResult<()>
Sets the log file
Sourcepub fn unset_log_file(&mut self) -> WebDriverResult<()>
pub fn unset_log_file(&mut self) -> WebDriverResult<()>
Unsets the log file
Sourcepub fn set_load_strategy(&mut self, value: String) -> WebDriverResult<()>
pub fn set_load_strategy(&mut self, value: String) -> WebDriverResult<()>
Sets the load strategy
Sourcepub fn unset_load_strategy(&mut self) -> WebDriverResult<()>
pub fn unset_load_strategy(&mut self) -> WebDriverResult<()>
Unsets the load strategy
Sourcepub fn set_webdriver_port(&mut self, value: u16) -> WebDriverResult<()>
pub fn set_webdriver_port(&mut self, value: u16) -> WebDriverResult<()>
Sets the webdriver port
Sourcepub fn unset_webdriver_port(&mut self) -> WebDriverResult<()>
pub fn unset_webdriver_port(&mut self) -> WebDriverResult<()>
Unsets the webdriver port
Sourcepub fn set_user_agent(&mut self, value: String) -> WebDriverResult<()>
pub fn set_user_agent(&mut self, value: String) -> WebDriverResult<()>
Sets the user agent
Sourcepub fn unset_user_agent(&mut self) -> WebDriverResult<()>
pub fn unset_user_agent(&mut self) -> WebDriverResult<()>
Unsets the user agent
Trait Implementations§
Source§impl Clone for FirefoxPreferences
impl Clone for FirefoxPreferences
Source§fn clone(&self) -> FirefoxPreferences
fn clone(&self) -> FirefoxPreferences
Returns a copy 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 Debug for FirefoxPreferences
impl Debug for FirefoxPreferences
Source§impl Default for FirefoxPreferences
impl Default for FirefoxPreferences
Source§fn default() -> FirefoxPreferences
fn default() -> FirefoxPreferences
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FirefoxPreferences
impl RefUnwindSafe for FirefoxPreferences
impl Send for FirefoxPreferences
impl Sync for FirefoxPreferences
impl Unpin for FirefoxPreferences
impl UnwindSafe for FirefoxPreferences
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