pub struct Opts {Show 19 fields
pub time_profiling: Option<OutputOptions>,
pub time_profiler_trace_path: Option<String>,
pub hard_fail: bool,
pub debug: DiagnosticsLogging,
pub multiprocess: bool,
pub force_ipc: 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_path: Option<PathBuf>,
pub config_dir: Option<PathBuf>,
pub temporary_storage: bool,
pub certificate_path: Option<String>,
pub host_file: Option<PathBuf>,
pub ignore_certificate_errors: bool,
pub unminify_js: bool,
pub local_script_source: Option<String>,
pub unminify_css: bool,
}Expand description
The set of global options supported by Servo. The values for these can be configured during initialization of Servo and cannot be changed later at runtime.
Fields§
§time_profiling: Option<OutputOptions>None to disable the time profiler or Some to enable it with either:
- an interval in seconds to cause it to produce output on that interval.
- a file path to write profiling info to a TSV file upon Servo’s termination.
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.
hard_fail: boolTrue to exit on thread failure instead of displaying about:failure.
debug: DiagnosticsLoggingDebug options that are used by developers to control Servo behavior for debugging purposes.
multiprocess: boolWhether we’re running in multiprocess mode.
force_ipc: boolWhether to force using ipc_channel instead of crossbeam_channel in singleprocess mode. Does nothing in multiprocess mode.
background_hang_monitor: boolWhether we want background hang monitor enabled or not
sandbox: boolWhether 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_path: Option<PathBuf>Load shaders from disk.
config_dir: Option<PathBuf>Directory for a default config directory
temporary_storage: boolUse temporary storage (data on disk will not persist across restarts).
certificate_path: Option<String>Path to PEM encoded SSL CA certificate store.
host_file: Option<PathBuf>Path to a hosts file (like /etc/hosts).
Ignored if the HOST_FILE environment variable is set.
ignore_certificate_errors: boolWhether 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: boolUnminify Javascript.
local_script_source: Option<String>Directory path that was created with “unminify-js”
unminify_css: boolUnminify Css.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Opts
impl<'de> Deserialize<'de> for Opts
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Opts, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Opts, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for Opts
impl Serialize for Opts
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl Freeze for Opts
impl RefUnwindSafe for Opts
impl Send for Opts
impl Sync for Opts
impl Unpin for Opts
impl UnsafeUnpin 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> 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