pub struct BrowserLaunchOptions {
pub disable_image_loading: bool,
pub mute_audio: bool,
pub incognito: bool,
pub user_data_dir: Option<PathBuf>,
pub profile_directory: Option<String>,
pub extension_paths: Vec<PathBuf>,
pub extension_keep_list: Vec<String>,
pub remove_default_flags: Vec<String>,
pub additional_args: Vec<String>,
pub enable_features: Vec<String>,
pub disable_features: Vec<String>,
pub force_field_trials: Vec<String>,
/* private fields */
}Fields§
§disable_image_loading: bool§mute_audio: bool§incognito: bool§user_data_dir: Option<PathBuf>§profile_directory: Option<String>§extension_paths: Vec<PathBuf>§extension_keep_list: Vec<String>§remove_default_flags: Vec<String>§additional_args: Vec<String>§enable_features: Vec<String>§disable_features: Vec<String>§force_field_trials: Vec<String>Implementations§
Source§impl BrowserLaunchOptions
impl BrowserLaunchOptions
pub fn new() -> Self
pub fn add_extension<P: Into<PathBuf>>(&mut self, path: P)
pub fn remove_extension<P: AsRef<Path>>(&mut self, path: P)
pub fn clear_extensions(&mut self)
pub fn disable_extensions_except<I, S>(&mut self, ids: I)
pub fn add_arg<S: Into<String>>(&mut self, arg: S)
pub fn remove_default_flag<S: Into<String>>(&mut self, flag: S)
pub fn set_switch_flag<S: Into<String>>(&mut self, switch: S)
pub fn set_switch_value<S, V>(&mut self, switch: S, value: V)
pub fn clear_switch<S: Into<String>>(&mut self, switch: S)
pub fn enable_feature<S: Into<String>>(&mut self, feature: S)
pub fn disable_feature<S: Into<String>>(&mut self, feature: S)
pub fn force_field_trial<S: Into<String>>(&mut self, trial: S)
pub fn has_override<S: AsRef<str>>(&self, switch: S) -> bool
Trait Implementations§
Source§impl Clone for BrowserLaunchOptions
impl Clone for BrowserLaunchOptions
Source§fn clone(&self) -> BrowserLaunchOptions
fn clone(&self) -> BrowserLaunchOptions
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 Debug for BrowserLaunchOptions
impl Debug for BrowserLaunchOptions
Source§impl Default for BrowserLaunchOptions
impl Default for BrowserLaunchOptions
Source§fn default() -> BrowserLaunchOptions
fn default() -> BrowserLaunchOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BrowserLaunchOptions
impl RefUnwindSafe for BrowserLaunchOptions
impl Send for BrowserLaunchOptions
impl Sync for BrowserLaunchOptions
impl Unpin for BrowserLaunchOptions
impl UnwindSafe for BrowserLaunchOptions
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