pub enum Arg {
    Foreground,
    Marionette,
    NoRemote,
    NamedProfile,
    Profile,
    ProfileManager,
    Other(String),
    RemoteAllowHosts,
    RemoteAllowOrigins,
    RemoteDebuggingPort,
    None,
}
Expand description

Represents a Firefox command-line argument.

Variants§

§

Foreground

-foreground ensures application window gets focus, which is not the default on macOS. As such Firefox only supports it on MacOS.

§

Marionette

–marionette enables Marionette in the application which is used by WebDriver HTTP.

§

NoRemote

-no-remote prevents remote commands to this instance of Firefox, and ensure we always start a new instance.

§

NamedProfile

-P NAME starts Firefox with a profile with a given name.

§

Profile

-profile PATH starts Firefox with the profile at the specified path.

§

ProfileManager

-ProfileManager starts Firefox with the profile chooser dialogue.

§

Other(String)

All other arguments.

§

RemoteAllowHosts

–remote-allow-hosts contains comma-separated values of the Host header to allow for incoming WebSocket requests of the Remote Agent.

§

RemoteAllowOrigins

–remote-allow-origins contains comma-separated values of the Origin header to allow for incoming WebSocket requests of the Remote Agent.

§

RemoteDebuggingPort

–remote-debugging-port enables the Remote Agent in the application which is used for the WebDriver BiDi and CDP remote debugging protocols.

§

None

Not an argument.

Implementations§

source§

impl Arg

source

pub fn new(name: &str) -> Arg

Trait Implementations§

source§

impl Debug for Arg

source§

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

Formats the value using the given formatter. Read more
source§

impl Display for Arg

source§

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

Formats the value using the given formatter. Read more
source§

impl<'a> From<&'a OsString> for Arg

source§

fn from(arg_str: &OsString) -> Arg

Converts to this type from the input type.
source§

impl PartialEq for Arg

source§

fn eq(&self, other: &Arg) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for Arg

Auto Trait Implementations§

§

impl RefUnwindSafe for Arg

§

impl Send for Arg

§

impl Sync for Arg

§

impl Unpin for Arg

§

impl UnwindSafe for Arg

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> 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> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

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> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

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

§

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

§

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.