pub struct Preferences {Show 150 fields
pub fonts_default: String,
pub fonts_serif: String,
pub fonts_sans_serif: String,
pub fonts_monospace: String,
pub fonts_default_size: i64,
pub fonts_default_monospace_size: i64,
pub css_animations_testing_enabled: bool,
pub devtools_server_enabled: bool,
pub devtools_server_port: i64,
pub dom_webgpu_enabled: bool,
pub dom_webgpu_wgpu_backend: String,
pub dom_abort_controller_enabled: bool,
pub dom_bluetooth_enabled: bool,
pub dom_bluetooth_testing_enabled: bool,
pub dom_allow_scripts_to_close_windows: bool,
pub dom_canvas_capture_enabled: bool,
pub dom_canvas_text_enabled: bool,
pub dom_clipboardevent_enabled: bool,
pub dom_composition_event_enabled: bool,
pub dom_crypto_subtle_enabled: bool,
pub dom_customelements_enabled: bool,
pub dom_document_dblclick_timeout: i64,
pub dom_document_dblclick_dist: i64,
pub dom_forcetouch_enabled: bool,
pub dom_fullscreen_test: bool,
pub dom_gamepad_enabled: bool,
pub dom_imagebitmap_enabled: bool,
pub dom_intersection_observer_enabled: bool,
pub dom_microdata_testing_enabled: bool,
pub dom_mouse_event_which_enabled: bool,
pub dom_mutation_observer_enabled: bool,
pub dom_offscreen_canvas_enabled: bool,
pub dom_permissions_enabled: bool,
pub dom_permissions_testing_allowed_in_nonsecure_contexts: bool,
pub dom_resize_observer_enabled: bool,
pub dom_script_asynch: bool,
pub dom_serviceworker_enabled: bool,
pub dom_serviceworker_timeout_seconds: i64,
pub dom_servo_helpers_enabled: bool,
pub dom_servoparser_async_html_tokenizer_enabled: bool,
pub dom_shadowdom_enabled: bool,
pub dom_svg_enabled: bool,
pub dom_testable_crash_enabled: bool,
pub dom_testbinding_enabled: bool,
pub dom_testbinding_prefcontrolled_enabled: bool,
pub dom_testbinding_prefcontrolled2_enabled: bool,
pub dom_testbinding_preference_value_falsy: bool,
pub dom_testbinding_preference_value_quote_string_test: String,
pub dom_testbinding_preference_value_space_string_test: String,
pub dom_testbinding_preference_value_string_empty: String,
pub dom_testbinding_preference_value_string_test: String,
pub dom_testbinding_preference_value_truthy: bool,
pub dom_testing_element_activation_enabled: bool,
pub dom_testing_html_input_element_select_files_enabled: bool,
pub dom_testperf_enabled: bool,
pub dom_xpath_enabled: bool,
pub dom_webgl2_enabled: bool,
pub dom_webrtc_enabled: bool,
pub dom_webrtc_transceiver_enabled: bool,
pub dom_webvtt_enabled: bool,
pub dom_webxr_enabled: bool,
pub dom_webxr_test: bool,
pub dom_webxr_first_person_observer_view: bool,
pub dom_webxr_glwindow_enabled: bool,
pub dom_webxr_glwindow_left_right: bool,
pub dom_webxr_glwindow_red_cyan: bool,
pub dom_webxr_glwindow_spherical: bool,
pub dom_webxr_glwindow_cubemap: bool,
pub dom_webxr_hands_enabled: bool,
pub dom_webxr_layers_enabled: bool,
pub dom_webxr_openxr_enabled: bool,
pub dom_webxr_sessionavailable: bool,
pub dom_webxr_unsafe_assume_user_intent: bool,
pub dom_worklet_enabled: bool,
pub dom_worklet_blockingsleep: bool,
pub dom_worklet_testing_enabled: bool,
pub dom_worklet_timeout_ms: i64,
pub gfx_precache_shaders: bool,
pub gfx_text_antialiasing_enabled: bool,
pub gfx_subpixel_text_antialiasing_enabled: bool,
pub gfx_texture_swizzling_enabled: bool,
pub js_asmjs_enabled: bool,
pub js_asyncstack: bool,
pub js_baseline_interpreter_enabled: bool,
pub js_disable_jit: bool,
pub js_baseline_jit_enabled: bool,
pub js_baseline_jit_unsafe_eager_compilation_enabled: bool,
pub js_discard_system_source: bool,
pub js_dump_stack_on_debuggee_would_run: bool,
pub js_ion_enabled: bool,
pub js_ion_offthread_compilation_enabled: bool,
pub js_ion_unsafe_eager_compilation_enabled: bool,
pub js_mem_gc_allocation_threshold_mb: i64,
pub js_mem_gc_allocation_threshold_factor: i64,
pub js_mem_gc_allocation_threshold_avoid_interrupt_factor: i64,
pub js_mem_gc_compacting_enabled: bool,
pub js_mem_gc_decommit_threshold_mb: i64,
pub js_mem_gc_dynamic_heap_growth_enabled: bool,
pub js_mem_gc_dynamic_mark_slice_enabled: bool,
pub js_mem_gc_empty_chunk_count_max: i64,
pub js_mem_gc_empty_chunk_count_min: i64,
pub js_mem_gc_high_frequency_heap_growth_max: i64,
pub js_mem_gc_high_frequency_heap_growth_min: i64,
pub js_mem_gc_high_frequency_high_limit_mb: i64,
pub js_mem_gc_high_frequency_low_limit_mb: i64,
pub js_mem_gc_high_frequency_time_limit_ms: i64,
pub js_mem_gc_incremental_enabled: bool,
pub js_mem_gc_incremental_slice_ms: i64,
pub js_mem_gc_low_frequency_heap_growth: i64,
pub js_mem_gc_per_zone_enabled: bool,
pub js_mem_gc_zeal_frequency: i64,
pub js_mem_gc_zeal_level: i64,
pub js_mem_max: i64,
pub js_native_regex_enabled: bool,
pub js_offthread_compilation_enabled: bool,
pub js_parallel_parsing_enabled: bool,
pub js_shared_memory: bool,
pub js_throw_on_asmjs_validation_failure: bool,
pub js_throw_on_debuggee_would_run: bool,
pub js_timers_minimum_duration: i64,
pub js_wasm_baseline_enabled: bool,
pub js_wasm_enabled: bool,
pub js_wasm_ion_enabled: bool,
pub js_werror_enabled: bool,
pub layout_animations_test_enabled: bool,
pub layout_columns_enabled: bool,
pub layout_grid_enabled: bool,
pub layout_container_queries_enabled: bool,
pub layout_css_transition_behavior_enabled: bool,
pub layout_flexbox_enabled: bool,
pub layout_legacy_layout: bool,
pub layout_threads: i64,
pub layout_unimplemented: bool,
pub layout_writing_mode_enabled: bool,
pub media_glvideo_enabled: bool,
pub media_testing_enabled: bool,
pub network_enforce_tls_enabled: bool,
pub network_enforce_tls_localhost: bool,
pub network_enforce_tls_onion: bool,
pub network_http_cache_disabled: bool,
pub network_local_directory_listing_enabled: bool,
pub network_mime_sniff: bool,
pub session_history_max_length: i64,
pub shell_background_color_rgba: [f64; 4],
pub webgl_testing_context_creation_error: bool,
pub threadpools_fallback_worker_num: i64,
pub threadpools_image_cache_workers_max: i64,
pub threadpools_async_runtime_workers_max: i64,
pub threadpools_resource_workers_max: i64,
pub threadpools_webrender_workers_max: i64,
}
Fields§
§fonts_default: String
§fonts_serif: String
§fonts_sans_serif: String
§fonts_monospace: String
§fonts_default_size: i64
§fonts_default_monospace_size: i64
§css_animations_testing_enabled: bool
§devtools_server_enabled: bool
Start the devtools server at startup
devtools_server_port: i64
Port number to start a server to listen to remote Firefox devtools connections. 0 for random port.
dom_webgpu_enabled: bool
§dom_webgpu_wgpu_backend: String
List of comma-separated backends to be used by wgpu.
dom_abort_controller_enabled: bool
§dom_bluetooth_enabled: bool
§dom_bluetooth_testing_enabled: bool
§dom_allow_scripts_to_close_windows: bool
§dom_canvas_capture_enabled: bool
§dom_canvas_text_enabled: bool
§dom_clipboardevent_enabled: bool
§dom_composition_event_enabled: bool
§dom_crypto_subtle_enabled: bool
§dom_customelements_enabled: bool
§dom_document_dblclick_timeout: i64
§dom_document_dblclick_dist: i64
§dom_forcetouch_enabled: bool
§dom_fullscreen_test: bool
§dom_gamepad_enabled: bool
§dom_imagebitmap_enabled: bool
§dom_intersection_observer_enabled: bool
§dom_microdata_testing_enabled: bool
§dom_mouse_event_which_enabled: bool
§dom_mutation_observer_enabled: bool
§dom_offscreen_canvas_enabled: bool
§dom_permissions_enabled: bool
§dom_permissions_testing_allowed_in_nonsecure_contexts: bool
§dom_resize_observer_enabled: bool
§dom_script_asynch: bool
§dom_serviceworker_enabled: bool
§dom_serviceworker_timeout_seconds: i64
§dom_servo_helpers_enabled: bool
§dom_servoparser_async_html_tokenizer_enabled: bool
§dom_shadowdom_enabled: bool
§dom_svg_enabled: bool
§dom_testable_crash_enabled: bool
§dom_testbinding_enabled: bool
§dom_testbinding_prefcontrolled_enabled: bool
§dom_testbinding_prefcontrolled2_enabled: bool
§dom_testbinding_preference_value_falsy: bool
§dom_testbinding_preference_value_quote_string_test: String
§dom_testbinding_preference_value_space_string_test: String
§dom_testbinding_preference_value_string_empty: String
§dom_testbinding_preference_value_string_test: String
§dom_testbinding_preference_value_truthy: bool
§dom_testing_element_activation_enabled: bool
§dom_testing_html_input_element_select_files_enabled: bool
§dom_testperf_enabled: bool
§dom_xpath_enabled: bool
§dom_webgl2_enabled: bool
Enable WebGL2 APIs.
dom_webrtc_enabled: bool
§dom_webrtc_transceiver_enabled: bool
§dom_webvtt_enabled: bool
§dom_webxr_enabled: bool
§dom_webxr_test: bool
§dom_webxr_first_person_observer_view: bool
§dom_webxr_glwindow_enabled: bool
§dom_webxr_glwindow_left_right: bool
§dom_webxr_glwindow_red_cyan: bool
§dom_webxr_glwindow_spherical: bool
§dom_webxr_glwindow_cubemap: bool
§dom_webxr_hands_enabled: bool
§dom_webxr_layers_enabled: bool
§dom_webxr_openxr_enabled: bool
§dom_webxr_unsafe_assume_user_intent: bool
§dom_worklet_enabled: bool
§dom_worklet_blockingsleep: bool
§dom_worklet_testing_enabled: bool
§dom_worklet_timeout_ms: i64
§gfx_precache_shaders: bool
True to compile all WebRender shaders when Servo initializes. This is mostly useful when modifying the shaders, to ensure they all compile after each change is made.
gfx_text_antialiasing_enabled: bool
Whether or not antialiasing is enabled for text rendering.
gfx_subpixel_text_antialiasing_enabled: bool
Whether or not subpixel antialiasing is enabled for text rendering.
gfx_texture_swizzling_enabled: bool
§js_asmjs_enabled: bool
§js_asyncstack: bool
§js_baseline_interpreter_enabled: bool
§js_disable_jit: bool
Whether to disable the jit within SpiderMonkey
js_baseline_jit_enabled: bool
§js_baseline_jit_unsafe_eager_compilation_enabled: bool
§js_discard_system_source: bool
§js_dump_stack_on_debuggee_would_run: bool
§js_ion_enabled: bool
§js_ion_offthread_compilation_enabled: bool
§js_ion_unsafe_eager_compilation_enabled: bool
§js_mem_gc_allocation_threshold_mb: i64
§js_mem_gc_allocation_threshold_factor: i64
§js_mem_gc_allocation_threshold_avoid_interrupt_factor: i64
§js_mem_gc_compacting_enabled: bool
§js_mem_gc_decommit_threshold_mb: i64
§js_mem_gc_dynamic_heap_growth_enabled: bool
§js_mem_gc_dynamic_mark_slice_enabled: bool
§js_mem_gc_empty_chunk_count_max: i64
§js_mem_gc_empty_chunk_count_min: i64
§js_mem_gc_high_frequency_heap_growth_max: i64
§js_mem_gc_high_frequency_heap_growth_min: i64
§js_mem_gc_high_frequency_high_limit_mb: i64
§js_mem_gc_high_frequency_low_limit_mb: i64
§js_mem_gc_high_frequency_time_limit_ms: i64
§js_mem_gc_incremental_enabled: bool
§js_mem_gc_incremental_slice_ms: i64
§js_mem_gc_low_frequency_heap_growth: i64
§js_mem_gc_per_zone_enabled: bool
§js_mem_gc_zeal_frequency: i64
§js_mem_gc_zeal_level: i64
§js_mem_max: i64
§js_native_regex_enabled: bool
§js_offthread_compilation_enabled: bool
§js_parallel_parsing_enabled: bool
§js_throw_on_asmjs_validation_failure: bool
§js_throw_on_debuggee_would_run: bool
§js_timers_minimum_duration: i64
§js_wasm_baseline_enabled: bool
§js_wasm_enabled: bool
§js_wasm_ion_enabled: bool
§js_werror_enabled: bool
§layout_animations_test_enabled: bool
§layout_columns_enabled: bool
§layout_grid_enabled: bool
§layout_container_queries_enabled: bool
§layout_css_transition_behavior_enabled: bool
§layout_flexbox_enabled: bool
§layout_legacy_layout: bool
§layout_threads: i64
§layout_unimplemented: bool
§layout_writing_mode_enabled: bool
§media_glvideo_enabled: bool
Enable hardware acceleration for video playback.
media_testing_enabled: bool
Enable a non-standard event handler for verifying behavior of media elements during tests.
network_enforce_tls_enabled: bool
§network_enforce_tls_localhost: bool
§network_enforce_tls_onion: bool
§network_http_cache_disabled: bool
§network_local_directory_listing_enabled: bool
§network_mime_sniff: bool
§session_history_max_length: i64
§shell_background_color_rgba: [f64; 4]
The background color of shell’s viewport. This will be used by OpenGL’s glClearColor
.
webgl_testing_context_creation_error: bool
§threadpools_fallback_worker_num: i64
Number of workers per threadpool, if we fail to detect how much parallelism is available at runtime.
threadpools_image_cache_workers_max: i64
Maximum number of workers for the Image Cache thread pool
threadpools_async_runtime_workers_max: i64
Maximum number of workers for the Networking async runtime thread pool
threadpools_resource_workers_max: i64
Maximum number of workers for the Core Resource Manager
threadpools_webrender_workers_max: i64
Maximum number of workers for webrender
Implementations§
source§impl Preferences
impl Preferences
source§impl Preferences
impl Preferences
Trait Implementations§
source§impl Clone for Preferences
impl Clone for Preferences
source§fn clone(&self) -> Preferences
fn clone(&self) -> Preferences
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for Preferences
impl Default for Preferences
source§impl<'de> Deserialize<'de> for Preferences
impl<'de> Deserialize<'de> for Preferences
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 Preferences
impl RefUnwindSafe for Preferences
impl Send for Preferences
impl Sync for Preferences
impl Unpin for Preferences
impl UnwindSafe for Preferences
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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