pub struct Opts {Show 21 fields
pub wait_for_stable_image: bool,
pub time_profiling: Option<OutputOptions>,
pub time_profiler_trace_path: Option<String>,
pub nonincremental_layout: bool,
pub user_stylesheets: Vec<(Vec<u8>, ServoUrl)>,
pub hard_fail: bool,
pub debug: DebugOptions,
pub webdriver_port: Option<u16>,
pub multiprocess: bool,
pub background_hang_monitor: bool,
pub sandbox: bool,
pub random_pipeline_closure_probability: Option<f32>,
pub random_pipeline_closure_seed: Option<usize>,
pub shaders_dir: Option<PathBuf>,
pub config_dir: Option<PathBuf>,
pub certificate_path: Option<String>,
pub ignore_certificate_errors: bool,
pub unminify_js: bool,
pub local_script_source: Option<String>,
pub unminify_css: bool,
pub print_pwm: bool,
}
Expand description
Global flags for Servo, currently set on the command line.
Fields§
§wait_for_stable_image: bool
Whether or not Servo should wait for web content to go into an idle state, therefore likely producing a stable output image. This is useful for taking screenshots of pages after they have loaded.
time_profiling: Option<OutputOptions>
None
to disable the time profiler or Some
to enable it with:
- an interval in seconds to cause it to produce output on that interval.
(
i.e. -p 5
). - a file path to write profiling info to a TSV file upon Servo’s termination.
(
i.e. -p out.tsv
).
time_profiler_trace_path: Option<String>
When the profiler is enabled, this is an optional path to dump a self-contained HTML file visualizing the traces as a timeline.
nonincremental_layout: bool
True to turn off incremental layout.
user_stylesheets: Vec<(Vec<u8>, ServoUrl)>
§hard_fail: bool
True to exit on thread failure instead of displaying about:failure.
debug: DebugOptions
Debug options that are used by developers to control Servo behavior for debugging purposes.
webdriver_port: Option<u16>
None
to disable WebDriver or Some
with a port number to start a server to listen to
remote WebDriver commands.
multiprocess: bool
Whether we’re running in multiprocess mode.
background_hang_monitor: bool
Whether we want background hang monitor enabled or not
sandbox: bool
Whether we’re running inside the sandbox.
random_pipeline_closure_probability: Option<f32>
Probability of randomly closing a pipeline, used for testing the hardening of the constellation.
random_pipeline_closure_seed: Option<usize>
The seed for the RNG used to randomly close pipelines, used for testing the hardening of the constellation.
shaders_dir: Option<PathBuf>
Load shaders from disk.
config_dir: Option<PathBuf>
Directory for a default config directory
certificate_path: Option<String>
Path to PEM encoded SSL CA certificate store.
ignore_certificate_errors: bool
Whether or not to completely ignore SSL certificate validation errors. TODO: We should see if we can eliminate the need for this by fixing https://github.com/servo/servo/issues/30080.
unminify_js: bool
Unminify Javascript.
local_script_source: Option<String>
Directory path that was created with “unminify-js”
unminify_css: bool
Unminify Css.
print_pwm: bool
Print Progressive Web Metrics to console.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Opts
impl<'de> Deserialize<'de> for Opts
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for Opts
impl RefUnwindSafe for Opts
impl Send for Opts
impl Sync for Opts
impl Unpin for Opts
impl UnwindSafe for Opts
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> 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