Skip to main content

WebPreferences

Struct WebPreferences 

Source
pub struct WebPreferences { /* private fields */ }

Implementations§

Source§

impl WebPreferences

Source

pub fn new_with_values( accessible_title: Option<JsString>, additional_arguments: Option<Box<[JsValue]>>, affinity: Option<JsString>, allow_running_insecure_content: Option<bool>, autoplay_policy: Option<JsString>, background_throttling: Option<bool>, context_isolation: Option<bool>, default_encoding: Option<JsString>, default_font_family: Option<DefaultFontFamily>, default_font_size: Option<u32>, default_monospace_font_size: Option<u32>, dev_tools: Option<bool>, disable_blink_features: Option<JsString>, disable_html_fullscreen_window_resize: Option<bool>, enable_blink_features: Option<JsString>, enable_remote_module: Option<bool>, experimental_features: Option<bool>, images: Option<bool>, javascript: Option<bool>, minimum_font_size: Option<u32>, native_window_open: Option<bool>, navigate_on_drag_drop: Option<bool>, node_integration_in_sub_frames: Option<bool>, node_integration_in_worker: Option<bool>, node_integration: Option<bool>, offscreen: Option<bool>, partition: Option<JsString>, plugins: Option<bool>, preload: Option<JsString>, safe_dialogs_message: Option<JsString>, safe_dialogs: Option<bool>, sandbox: Option<bool>, scroll_bounce: Option<bool>, session: Option<Session>, spellcheck: Option<bool>, text_areas_are_resizable: Option<bool>, web_security: Option<bool>, webgl: Option<bool>, webview_tag: Option<bool>, zoom_factor: Option<f32>, ) -> WebPreferences

Source

pub fn accessible_title(&self) -> Option<JsString>

Source

pub fn set_accessible_title(&mut self, value: Option<JsString>)

Source

pub fn additional_arguments(&self) -> Option<Box<[JsValue]>>

Source

pub fn set_additional_arguments(&mut self, value: Option<Box<[JsValue]>>)

Source

pub fn affinity(&self) -> Option<JsString>

Source

pub fn set_affinity(&mut self, value: Option<JsString>)

Source

pub fn allow_running_insecure_content(&self) -> Option<bool>

Source

pub fn set_allow_running_insecure_content(&mut self, value: Option<bool>)

Source

pub fn autoplay_policy(&self) -> Option<JsString>

Source

pub fn set_autoplay_policy(&mut self, value: Option<JsString>)

Source

pub fn background_throttling(&self) -> Option<bool>

Source

pub fn set_background_throttling(&mut self, value: Option<bool>)

Source

pub fn context_isolation(&self) -> Option<bool>

Source

pub fn set_context_isolation(&mut self, value: Option<bool>)

Source

pub fn default_encoding(&self) -> Option<JsString>

Source

pub fn set_default_encoding(&mut self, value: Option<JsString>)

Source

pub fn default_font_family(&self) -> Option<DefaultFontFamily>

Source

pub fn set_default_font_family(&mut self, value: Option<DefaultFontFamily>)

Source

pub fn default_font_size(&self) -> Option<u32>

Source

pub fn set_default_font_size(&mut self, value: Option<u32>)

Source

pub fn default_monospace_font_size(&self) -> Option<u32>

Source

pub fn set_default_monospace_font_size(&mut self, value: Option<u32>)

Source

pub fn dev_tools(&self) -> Option<bool>

Source

pub fn set_dev_tools(&mut self, value: Option<bool>)

Source

pub fn disable_html_fullscreen_window_resize(&self) -> Option<bool>

Source

pub fn set_disable_html_fullscreen_window_resize(&mut self, value: Option<bool>)

Source

pub fn enable_remote_module(&self) -> Option<bool>

Source

pub fn set_enable_remote_module(&mut self, value: Option<bool>)

Source

pub fn experimental_features(&self) -> Option<bool>

Source

pub fn set_experimental_features(&mut self, value: Option<bool>)

Source

pub fn images(&self) -> Option<bool>

Source

pub fn set_images(&mut self, value: Option<bool>)

Source

pub fn javascript(&self) -> Option<bool>

Source

pub fn set_javascript(&mut self, value: Option<bool>)

Source

pub fn minimum_font_size(&self) -> Option<u32>

Source

pub fn set_minimum_font_size(&mut self, value: Option<u32>)

Source

pub fn native_window_open(&self) -> Option<bool>

Source

pub fn set_native_window_open(&mut self, value: Option<bool>)

Source

pub fn navigate_on_drag_drop(&self) -> Option<bool>

Source

pub fn set_navigate_on_drag_drop(&mut self, value: Option<bool>)

Source

pub fn node_integration_in_sub_frames(&self) -> Option<bool>

Source

pub fn set_node_integration_in_sub_frames(&mut self, value: Option<bool>)

Source

pub fn node_integration_in_worker(&self) -> Option<bool>

Source

pub fn set_node_integration_in_worker(&mut self, value: Option<bool>)

Source

pub fn node_integration(&self) -> Option<bool>

Source

pub fn set_node_integration(&mut self, value: Option<bool>)

Source

pub fn offscreen(&self) -> Option<bool>

Source

pub fn set_offscreen(&mut self, value: Option<bool>)

Source

pub fn partition(&self) -> Option<JsString>

Source

pub fn set_partition(&mut self, value: Option<JsString>)

Source

pub fn plugins(&self) -> Option<bool>

Source

pub fn set_plugins(&mut self, value: Option<bool>)

Source

pub fn preload(&self) -> Option<JsString>

Source

pub fn set_preload(&mut self, value: Option<JsString>)

Source

pub fn safe_dialogs_message(&self) -> Option<JsString>

Source

pub fn set_safe_dialogs_message(&mut self, value: Option<JsString>)

Source

pub fn safe_dialogs(&self) -> Option<bool>

Source

pub fn set_safe_dialogs(&mut self, value: Option<bool>)

Source

pub fn sandbox(&self) -> Option<bool>

Source

pub fn set_sandbox(&mut self, value: Option<bool>)

Source

pub fn scroll_bounce(&self) -> Option<bool>

Source

pub fn set_scroll_bounce(&mut self, value: Option<bool>)

Source

pub fn session(&self) -> Option<Session>

Source

pub fn set_session(&mut self, value: Option<Session>)

Source

pub fn spellcheck(&self) -> Option<bool>

Source

pub fn set_spellcheck(&mut self, value: Option<bool>)

Source

pub fn text_areas_are_resizable(&self) -> Option<bool>

Source

pub fn set_text_areas_are_resizable(&mut self, value: Option<bool>)

Source

pub fn web_security(&self) -> Option<bool>

Source

pub fn set_web_security(&mut self, value: Option<bool>)

Source

pub fn webgl(&self) -> Option<bool>

Source

pub fn set_webgl(&mut self, value: Option<bool>)

Source

pub fn webview_tag(&self) -> Option<bool>

Source

pub fn set_webview_tag(&mut self, value: Option<bool>)

Source

pub fn zoom_factor(&self) -> Option<f32>

Source

pub fn set_zoom_factor(&mut self, value: Option<f32>)

Trait Implementations§

Source§

impl Clone for WebPreferences

Source§

fn clone(&self) -> WebPreferences

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for WebPreferences

Source§

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

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

impl Default for WebPreferences

Source§

fn default() -> WebPreferences

Returns the “default value” for a type. Read more
Source§

impl From<WebPreferences> for JsValue

Source§

fn from(value: WebPreferences) -> Self

Converts to this type from the input type.
Source§

impl FromWasmAbi for WebPreferences

Source§

type Abi = WasmPtr<WasmRefCell<WebPreferences>>

The Wasm ABI type that this converts from when coming back out from the ABI boundary.
Source§

unsafe fn from_abi(js: Self::Abi) -> Self

Recover a Self from Self::Abi. Read more
Source§

impl IntoWasmAbi for WebPreferences

Source§

type Abi = WasmPtr<WasmRefCell<WebPreferences>>

The Wasm ABI type that this converts into when crossing the ABI boundary.
Source§

fn into_abi(self) -> Self::Abi

Convert self into Self::Abi so that it can be sent across the wasm ABI boundary.
Source§

impl LongRefFromWasmAbi for WebPreferences

Source§

type Abi = WasmPtr<WasmRefCell<WebPreferences>>

Same as RefFromWasmAbi::Abi
Source§

type Anchor = RcRef<WebPreferences>

Same as RefFromWasmAbi::Anchor
Source§

unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
Source§

impl OptionFromWasmAbi for WebPreferences

Source§

fn is_none(abi: &Self::Abi) -> bool

Tests whether the argument is a “none” instance. If so it will be deserialized as None, and otherwise it will be passed to FromWasmAbi.
Source§

impl OptionIntoWasmAbi for WebPreferences

Source§

fn none() -> Self::Abi

Returns an ABI instance indicating “none”, which JS will interpret as the None branch of this option. Read more
Source§

impl RefFromWasmAbi for WebPreferences

Source§

type Abi = WasmPtr<WasmRefCell<WebPreferences>>

The Wasm ABI type references to Self are recovered from.
Source§

type Anchor = RcRef<WebPreferences>

The type that holds the reference to Self for the duration of the invocation of the function that has an &Self parameter. This is required to ensure that the lifetimes don’t persist beyond one function call, and so that they remain anonymous.
Source§

unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor

Recover a Self::Anchor from Self::Abi. Read more
Source§

impl RefMutFromWasmAbi for WebPreferences

Source§

type Abi = WasmPtr<WasmRefCell<WebPreferences>>

Same as RefFromWasmAbi::Abi
Source§

type Anchor = RcRefMut<WebPreferences>

Same as RefFromWasmAbi::Anchor
Source§

unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor

Same as RefFromWasmAbi::ref_from_abi
Source§

impl SupportsConstructor for WebPreferences

Source§

impl SupportsInstanceProperty for WebPreferences

Source§

impl SupportsStaticProperty for WebPreferences

Source§

impl TryFromJsValue for WebPreferences

Source§

fn try_from_js_value(value: JsValue) -> Result<Self, JsValue>

Performs the conversion.
Source§

fn try_from_js_value_ref(value: &JsValue) -> Option<Self>

Performs the conversion.
Source§

impl VectorFromWasmAbi for WebPreferences

Source§

impl VectorIntoWasmAbi for WebPreferences

Source§

impl WasmDescribe for WebPreferences

Source§

impl WasmDescribeVector for WebPreferences

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> 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> 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> ReturnWasmAbi for T
where T: IntoWasmAbi,

Source§

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi
Source§

fn return_abi(self) -> <T as ReturnWasmAbi>::Abi

Same as IntoWasmAbi::into_abi, except that it may throw and never return in the case of Err.
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<S, T> Upcast<T> for S
where T: UpcastFrom<S> + ?Sized, S: ?Sized,

Source§

fn upcast(&self) -> &T
where Self: ErasableGeneric, T: Sized + ErasableGeneric<Repr = Self::Repr>,

Perform a zero-cost type-safe upcast to a wider ref type within the Wasm bindgen generics type system. Read more
Source§

fn upcast_into(self) -> T
where Self: Sized + ErasableGeneric, T: Sized + ErasableGeneric<Repr = Self::Repr>,

Perform a zero-cost type-safe upcast to a wider type within the Wasm bindgen generics type system. Read more