struct CmdArgs {Show 40 fields
background_hang_monitor: bool,
certificate_path: Option<PathBuf>,
clean_shutdown: bool,
config_dir: Option<PathBuf>,
content_process: Option<String>,
debug: Vec<String>,
device_pixel_ratio: Option<f32>,
devtools: Option<u16>,
enable_experimental_web_platform_features: bool,
exit: bool,
force_ipc: bool,
hard_fail: bool,
headless: bool,
ignore_certificate_errors: bool,
layout_threads: Option<i64>,
local_script_source: Option<PathBuf>,
multiprocess: bool,
no_native_titlebar: bool,
nonincremental_layout: bool,
output: Option<PathBuf>,
profile: Option<OutputOptions>,
profiler_trace_path: Option<PathBuf>,
pref: Vec<String>,
prefs_file: Vec<PathBuf>,
print_pwm: bool,
random_pipeline_closure_probability: Option<f32>,
random_pipeline_closure_seed: Option<usize>,
sandbox: bool,
shaders: Option<PathBuf>,
screen_size_override: Option<Size2D<u32, DeviceIndependentPixel>>,
simulate_touch_events: bool,
tracing_filter: Option<String>,
unminify_js: bool,
unminify_css: bool,
user_agent: Option<String>,
userscripts: Option<PathBuf>,
user_stylesheet: Vec<(Vec<u8>, ServoUrl)>,
webdriver_port: Option<u16>,
window_size: Option<Size2D<u32, DeviceIndependentPixel>>,
url: String,
}Fields§
§background_hang_monitor: boolBackground Hang Monitor enabled.
certificate_path: Option<PathBuf>Path to find SSL certificates.
clean_shutdown: boolDo not shutdown until all threads have finished (macos only).
config_dir: Option<PathBuf>Config directory following xdg spec on linux platform.
content_process: Option<String>Run as a content process and connect to the given pipe.
debug: Vec<String>A comma-separated string of debug options. Pass help to show available options.
device_pixel_ratio: Option<f32>Device pixels per px.
devtools: Option<u16>Start remote devtools server on port.
enable_experimental_web_platform_features: boolWhether or not to enable experimental web platform features.
exit: bool§force_ipc: bool§hard_fail: boolExit on thread failure instead of displaying about:failure.
headless: boolHeadless mode.
ignore_certificate_errors: boolWhether or not to completely ignore certificate errors.
layout_threads: Option<i64>Number of threads to use for layout.
local_script_source: Option<PathBuf>Directory root with unminified scripts.
multiprocess: boolRun in multiprocess mode.
no_native_titlebar: boolDo not use native titlebar.
nonincremental_layout: boolEnable to turn off incremental layout.
output: Option<PathBuf>Path to an output image. The format of the image is determined by the extension.
Supports all formats that rust-image does.
profile: Option<OutputOptions>Time profiler flag and either a TSV output filename OR an interval for output to Stdout (blank for Stdout with interval of 5s).
profiler_trace_path: Option<PathBuf>Path to dump a self-contained HTML timeline of profiler traces.
pref: Vec<String>A preference to set.
prefs_file: Vec<PathBuf>Load in additional prefs from a file.
print_pwm: boolPrint Progressive Web Metrics.
random_pipeline_closure_probability: Option<f32>Probability of randomly closing a pipeline (for testing constellation hardening).
random_pipeline_closure_seed: Option<usize>A fixed seed for repeatbility of random pipeline closure.
sandbox: boolRun in a sandbox if multiprocess.
shaders: Option<PathBuf>Shaders will be loaded from the specified directory instead of using the builtin ones.
screen_size_override: Option<Size2D<u32, DeviceIndependentPixel>>Override the screen resolution in logical (device independent) pixels.
simulate_touch_events: boolUse mouse events to simulate touch events. Left button presses will be converted to touch and mouse movements while the left button is pressed will be converted to touch movements.
tracing_filter: Option<String>Define a custom filter for traces. Overrides SERVO_TRACING if set.
unminify_js: boolUnminify Javascript.
unminify_css: boolUnminify Css.
user_agent: Option<String>Set custom user agent string (or ios / android / desktop for platform default).
userscripts: Option<PathBuf>Uses userscripts in resources/user-agent-js, or a specified full path.
user_stylesheet: Vec<(Vec<u8>, ServoUrl)>A user stylesheet to be added to every document.
webdriver_port: Option<u16>Start remote WebDriver server on port.
window_size: Option<Size2D<u32, DeviceIndependentPixel>>Set the initial window size in logical (device independent) pixels.
url: StringThe url we should load.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CmdArgs
impl RefUnwindSafe for CmdArgs
impl Send for CmdArgs
impl Sync for CmdArgs
impl Unpin for CmdArgs
impl UnwindSafe for CmdArgs
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Filterable for T
impl<T> Filterable for T
Source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more