pub struct WebPreferences { /* private fields */ }
Implementations§
Source§impl WebPreferences
impl WebPreferences
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
pub fn accessible_title(&self) -> Option<JsString>
pub fn set_accessible_title(&mut self, value: Option<JsString>)
pub fn additional_arguments(&self) -> Option<Box<[JsValue]>>
pub fn set_additional_arguments(&mut self, value: Option<Box<[JsValue]>>)
pub fn affinity(&self) -> Option<JsString>
pub fn set_affinity(&mut self, value: Option<JsString>)
pub fn allow_running_insecure_content(&self) -> Option<bool>
pub fn set_allow_running_insecure_content(&mut self, value: Option<bool>)
pub fn autoplay_policy(&self) -> Option<JsString>
pub fn set_autoplay_policy(&mut self, value: Option<JsString>)
pub fn background_throttling(&self) -> Option<bool>
pub fn set_background_throttling(&mut self, value: Option<bool>)
pub fn context_isolation(&self) -> Option<bool>
pub fn set_context_isolation(&mut self, value: Option<bool>)
pub fn default_encoding(&self) -> Option<JsString>
pub fn set_default_encoding(&mut self, value: Option<JsString>)
pub fn default_font_family(&self) -> Option<DefaultFontFamily>
pub fn set_default_font_family(&mut self, value: Option<DefaultFontFamily>)
pub fn default_font_size(&self) -> Option<u32>
pub fn set_default_font_size(&mut self, value: Option<u32>)
pub fn default_monospace_font_size(&self) -> Option<u32>
pub fn set_default_monospace_font_size(&mut self, value: Option<u32>)
pub fn dev_tools(&self) -> Option<bool>
pub fn set_dev_tools(&mut self, value: Option<bool>)
pub fn disable_blink_features(&self) -> Option<JsString>
pub fn set_disable_blink_features(&mut self, value: Option<JsString>)
pub fn disable_html_fullscreen_window_resize(&self) -> Option<bool>
pub fn set_disable_html_fullscreen_window_resize(&mut self, value: Option<bool>)
pub fn enable_blink_features(&self) -> Option<JsString>
pub fn set_enable_blink_features(&mut self, value: Option<JsString>)
pub fn enable_remote_module(&self) -> Option<bool>
pub fn set_enable_remote_module(&mut self, value: Option<bool>)
pub fn experimental_features(&self) -> Option<bool>
pub fn set_experimental_features(&mut self, value: Option<bool>)
pub fn images(&self) -> Option<bool>
pub fn set_images(&mut self, value: Option<bool>)
pub fn javascript(&self) -> Option<bool>
pub fn set_javascript(&mut self, value: Option<bool>)
pub fn minimum_font_size(&self) -> Option<u32>
pub fn set_minimum_font_size(&mut self, value: Option<u32>)
pub fn native_window_open(&self) -> Option<bool>
pub fn set_native_window_open(&mut self, value: Option<bool>)
pub fn node_integration_in_sub_frames(&self) -> Option<bool>
pub fn set_node_integration_in_sub_frames(&mut self, value: Option<bool>)
pub fn node_integration_in_worker(&self) -> Option<bool>
pub fn set_node_integration_in_worker(&mut self, value: Option<bool>)
pub fn node_integration(&self) -> Option<bool>
pub fn set_node_integration(&mut self, value: Option<bool>)
pub fn offscreen(&self) -> Option<bool>
pub fn set_offscreen(&mut self, value: Option<bool>)
pub fn partition(&self) -> Option<JsString>
pub fn set_partition(&mut self, value: Option<JsString>)
pub fn plugins(&self) -> Option<bool>
pub fn set_plugins(&mut self, value: Option<bool>)
pub fn preload(&self) -> Option<JsString>
pub fn set_preload(&mut self, value: Option<JsString>)
pub fn safe_dialogs_message(&self) -> Option<JsString>
pub fn set_safe_dialogs_message(&mut self, value: Option<JsString>)
pub fn safe_dialogs(&self) -> Option<bool>
pub fn set_safe_dialogs(&mut self, value: Option<bool>)
pub fn sandbox(&self) -> Option<bool>
pub fn set_sandbox(&mut self, value: Option<bool>)
pub fn scroll_bounce(&self) -> Option<bool>
pub fn set_scroll_bounce(&mut self, value: Option<bool>)
pub fn session(&self) -> Option<Session>
pub fn set_session(&mut self, value: Option<Session>)
pub fn spellcheck(&self) -> Option<bool>
pub fn set_spellcheck(&mut self, value: Option<bool>)
pub fn text_areas_are_resizable(&self) -> Option<bool>
pub fn set_text_areas_are_resizable(&mut self, value: Option<bool>)
pub fn web_security(&self) -> Option<bool>
pub fn set_web_security(&mut self, value: Option<bool>)
pub fn webgl(&self) -> Option<bool>
pub fn set_webgl(&mut self, value: Option<bool>)
pub fn webview_tag(&self) -> Option<bool>
pub fn set_webview_tag(&mut self, value: Option<bool>)
pub fn zoom_factor(&self) -> Option<f32>
pub fn set_zoom_factor(&mut self, value: Option<f32>)
Trait Implementations§
Source§impl Clone for WebPreferences
impl Clone for WebPreferences
Source§fn clone(&self) -> WebPreferences
fn clone(&self) -> WebPreferences
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for WebPreferences
impl Debug for WebPreferences
Source§impl Default for WebPreferences
impl Default for WebPreferences
Source§fn default() -> WebPreferences
fn default() -> WebPreferences
Returns the “default value” for a type. Read more
Source§impl From<WebPreferences> for JsValue
impl From<WebPreferences> for JsValue
Source§fn from(value: WebPreferences) -> Self
fn from(value: WebPreferences) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for WebPreferences
impl FromWasmAbi for WebPreferences
Source§impl IntoWasmAbi for WebPreferences
impl IntoWasmAbi for WebPreferences
Source§impl LongRefFromWasmAbi for WebPreferences
impl LongRefFromWasmAbi for WebPreferences
Source§impl OptionFromWasmAbi for WebPreferences
impl OptionFromWasmAbi for WebPreferences
Source§impl OptionIntoWasmAbi for WebPreferences
impl OptionIntoWasmAbi for WebPreferences
Source§impl RefFromWasmAbi for WebPreferences
impl RefFromWasmAbi for WebPreferences
Source§type Anchor = RcRef<WebPreferences>
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§impl RefMutFromWasmAbi for WebPreferences
impl RefMutFromWasmAbi for WebPreferences
Source§impl TryFromJsValue for WebPreferences
impl TryFromJsValue for WebPreferences
Source§impl VectorFromWasmAbi for WebPreferences
impl VectorFromWasmAbi for WebPreferences
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[WebPreferences]>
Source§impl VectorIntoJsValue for WebPreferences
impl VectorIntoJsValue for WebPreferences
fn vector_into_jsvalue(vector: Box<[WebPreferences]>) -> JsValue
Source§impl VectorIntoWasmAbi for WebPreferences
impl VectorIntoWasmAbi for WebPreferences
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[WebPreferences]>) -> Self::Abi
Source§impl WasmDescribeVector for WebPreferences
impl WasmDescribeVector for WebPreferences
impl SupportsConstructor for WebPreferences
impl SupportsInstanceProperty for WebPreferences
impl SupportsStaticProperty for WebPreferences
Auto Trait Implementations§
impl Freeze for WebPreferences
impl RefUnwindSafe for WebPreferences
impl !Send for WebPreferences
impl !Sync for WebPreferences
impl Unpin for WebPreferences
impl UnwindSafe for WebPreferences
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
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
.