LaunchPersistentContextArgs

Struct LaunchPersistentContextArgs 

Source
pub(crate) struct LaunchPersistentContextArgs<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k> {
Show 38 fields user_data_dir: &'a Path, sdk_language: &'static str, pub(crate) executable: Option<&'b Path>, pub(crate) args: Option<&'c [String]>, pub(crate) ignore_all_default_args: Option<bool>, pub(crate) handle_sigint: Option<bool>, pub(crate) handle_sigterm: Option<bool>, pub(crate) handle_sighup: Option<bool>, pub(crate) timeout: Option<f64>, pub(crate) env: Option<Map<String, Value>>, pub(crate) headless: Option<bool>, pub(crate) devtools: Option<bool>, pub(crate) proxy: Option<ProxySettings>, pub(crate) downloads: Option<&'d Path>, pub(crate) slowmo: Option<f64>, pub(crate) viewport: Option<Option<Viewport>>, pub(crate) screen: Option<Viewport>, pub(crate) no_viewport: Option<bool>, pub(crate) ignore_https_errors: Option<bool>, pub(crate) js_enabled: Option<bool>, pub(crate) bypass_csp: Option<bool>, pub(crate) user_agent: Option<&'e str>, pub(crate) locale: Option<&'f str>, pub(crate) timezone_id: Option<&'g str>, pub(crate) geolocation: Option<Geolocation>, pub(crate) permissions: Option<&'h [String]>, pub(crate) extra_http_headers: Option<HashMap<String, String>>, pub(crate) offline: Option<bool>, pub(crate) http_credentials: Option<&'i HttpCredentials>, pub(crate) device_scale_factor: Option<f64>, pub(crate) is_mobile: Option<bool>, pub(crate) has_touch: Option<bool>, pub(crate) color_scheme: Option<ColorScheme>, pub(crate) accept_downloads: Option<bool>, pub(crate) chromium_sandbox: Option<bool>, pub(crate) record_video: Option<RecordVideo<'j>>, pub(crate) record_har: Option<RecordHar<'k>>, pub(crate) channel: Option<BrowserChannel>,
}

Fields§

§user_data_dir: &'a Path§sdk_language: &'static str§executable: Option<&'b Path>§args: Option<&'c [String]>§ignore_all_default_args: Option<bool>§handle_sigint: Option<bool>§handle_sigterm: Option<bool>§handle_sighup: Option<bool>§timeout: Option<f64>§env: Option<Map<String, Value>>§headless: Option<bool>§devtools: Option<bool>§proxy: Option<ProxySettings>§downloads: Option<&'d Path>§slowmo: Option<f64>§viewport: Option<Option<Viewport>>§screen: Option<Viewport>§no_viewport: Option<bool>§ignore_https_errors: Option<bool>§js_enabled: Option<bool>§bypass_csp: Option<bool>§user_agent: Option<&'e str>§locale: Option<&'f str>§timezone_id: Option<&'g str>§geolocation: Option<Geolocation>§permissions: Option<&'h [String]>§extra_http_headers: Option<HashMap<String, String>>§offline: Option<bool>§http_credentials: Option<&'i HttpCredentials>§device_scale_factor: Option<f64>§is_mobile: Option<bool>§has_touch: Option<bool>§color_scheme: Option<ColorScheme>§accept_downloads: Option<bool>§chromium_sandbox: Option<bool>§record_video: Option<RecordVideo<'j>>§record_har: Option<RecordHar<'k>>§channel: Option<BrowserChannel>

Implementations§

Source§

impl<'a> LaunchPersistentContextArgs<'a, '_, '_, '_, '_, '_, '_, '_, '_, '_, '_>

Source

pub(crate) fn new(user_data_dir: &'a Path) -> Self

Trait Implementations§

Source§

impl<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k> Debug for LaunchPersistentContextArgs<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k>

Source§

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

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

impl<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k> Serialize for LaunchPersistentContextArgs<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k>

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k> Freeze for LaunchPersistentContextArgs<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k>

§

impl<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k> RefUnwindSafe for LaunchPersistentContextArgs<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k>

§

impl<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k> Send for LaunchPersistentContextArgs<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k>

§

impl<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k> Sync for LaunchPersistentContextArgs<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k>

§

impl<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k> Unpin for LaunchPersistentContextArgs<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k>

§

impl<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k> UnwindSafe for LaunchPersistentContextArgs<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k>

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

Source§

type Output = T

Should always be Self
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.