CmdArgs

Struct CmdArgs 

Source
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: bool

Background Hang Monitor enabled.

§certificate_path: Option<PathBuf>

Path to find SSL certificates.

§clean_shutdown: bool

Do 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: bool

Whether or not to enable experimental web platform features.

§exit: bool§force_ipc: bool§hard_fail: bool

Exit on thread failure instead of displaying about:failure.

§headless: bool

Headless mode.

§ignore_certificate_errors: bool

Whether 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: bool

Run in multiprocess mode.

§no_native_titlebar: bool

Do not use native titlebar.

§nonincremental_layout: bool

Enable 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: bool

Print 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: bool

Run 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: bool

Use 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: bool

Unminify Javascript.

§unminify_css: bool

Unminify 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: String

The url we should load.

Trait Implementations§

Source§

impl Clone for CmdArgs

Source§

fn clone(&self) -> CmdArgs

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CmdArgs

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> AsVoidPtr for T

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> Downcast<T> for T

Source§

fn downcast(&self) -> &T

Source§

impl<T> Downcast for T
where T: Any,

Source§

fn into_any(self: Box<T>) -> Box<dyn Any>

Convert 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>

Convert 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)

Convert &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)

Convert &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
where T: Any + Send + Sync,

Source§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Sync + Send>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> Filterable for T

Source§

fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>

Creates a filterable data provider with the given name for debugging. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> MaybeBoxed<Box<T>> for T

Source§

fn maybe_boxed(self) -> Box<T>

Convert
Source§

impl<T> MaybeBoxed<T> for T

Source§

fn maybe_boxed(self) -> T

Convert
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, S> SimdFrom<T, S> for T
where S: Simd,

Source§

fn simd_from(value: T, _simd: S) -> T

Source§

impl<F, T, S> SimdInto<T, S> for F
where T: SimdFrom<F, S>, S: Simd,

Source§

fn simd_into(self, simd: S) -> T

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Upcast<T> for T

Source§

fn upcast(&self) -> Option<&T>

Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T

Source§

impl<T> SerializableAny for T
where T: 'static + Any + Clone + for<'a> Send + Sync,

Source§

impl<T> WasmNotSend for T
where T: Send,

Source§

impl<T> WasmNotSendSync for T

Source§

impl<T> WasmNotSync for T
where T: Sync,