pub struct SettingsBuilder { /* private fields */ }
Expand description

A builder-pattern type to construct Settings objects.

Implementations§

source§

impl SettingsBuilder

source

pub fn allow_file_access_from_file_urls( self, allow_file_access_from_file_urls: bool ) -> Self

Available on crate feature v2_10 only.
source

pub fn allow_modal_dialogs(self, allow_modal_dialogs: bool) -> Self

source

pub fn allow_top_navigation_to_data_urls( self, allow_top_navigation_to_data_urls: bool ) -> Self

Available on crate feature v2_28 only.
source

pub fn allow_universal_access_from_file_urls( self, allow_universal_access_from_file_urls: bool ) -> Self

Available on crate feature v2_14 only.
source

pub fn auto_load_images(self, auto_load_images: bool) -> Self

source

pub fn cursive_font_family( self, cursive_font_family: impl Into<GString> ) -> Self

source

pub fn default_charset(self, default_charset: impl Into<GString>) -> Self

source

pub fn default_font_family( self, default_font_family: impl Into<GString> ) -> Self

source

pub fn default_font_size(self, default_font_size: u32) -> Self

source

pub fn default_monospace_font_size( self, default_monospace_font_size: u32 ) -> Self

source

pub fn disable_web_security(self, disable_web_security: bool) -> Self

Available on crate feature v2_40 only.
source

pub fn draw_compositing_indicators( self, draw_compositing_indicators: bool ) -> Self

source

pub fn enable_accelerated_2d_canvas( self, enable_accelerated_2d_canvas: bool ) -> Self

👎Deprecated: Since 2.32
Available on crate feature v2_2 only.
source

pub fn enable_back_forward_navigation_gestures( self, enable_back_forward_navigation_gestures: bool ) -> Self

Available on crate feature v2_24 only.
source

pub fn enable_caret_browsing(self, enable_caret_browsing: bool) -> Self

source

pub fn enable_developer_extras(self, enable_developer_extras: bool) -> Self

source

pub fn enable_dns_prefetching(self, enable_dns_prefetching: bool) -> Self

source

pub fn enable_encrypted_media(self, enable_encrypted_media: bool) -> Self

Available on crate feature v2_20 only.
source

pub fn enable_frame_flattening(self, enable_frame_flattening: bool) -> Self

👎Deprecated: Since 2.38
source

pub fn enable_fullscreen(self, enable_fullscreen: bool) -> Self

source

pub fn enable_html5_database(self, enable_html5_database: bool) -> Self

source

pub fn enable_html5_local_storage( self, enable_html5_local_storage: bool ) -> Self

source

pub fn enable_java(self, enable_java: bool) -> Self

👎Deprecated: Since 2.38
source

pub fn enable_javascript(self, enable_javascript: bool) -> Self

source

pub fn enable_javascript_markup(self, enable_javascript_markup: bool) -> Self

Available on crate feature v2_24 only.
source

pub fn enable_media(self, enable_media: bool) -> Self

Available on crate feature v2_26 only.
source

pub fn enable_media_capabilities(self, enable_media_capabilities: bool) -> Self

Available on crate feature v2_22 only.
source

pub fn enable_media_stream(self, enable_media_stream: bool) -> Self

Available on crate feature v2_4 only.
source

pub fn enable_mediasource(self, enable_mediasource: bool) -> Self

Available on crate feature v2_4 only.
source

pub fn enable_mock_capture_devices( self, enable_mock_capture_devices: bool ) -> Self

Available on crate feature v2_24 only.
source

pub fn enable_offline_web_application_cache( self, enable_offline_web_application_cache: bool ) -> Self

source

pub fn enable_page_cache(self, enable_page_cache: bool) -> Self

source

pub fn enable_plugins(self, enable_plugins: bool) -> Self

👎Deprecated: Since 2.32
source

pub fn enable_private_browsing(self, enable_private_browsing: bool) -> Self

👎Deprecated: Since 2.16
source

pub fn enable_resizable_text_areas( self, enable_resizable_text_areas: bool ) -> Self

source

pub fn enable_site_specific_quirks( self, enable_site_specific_quirks: bool ) -> Self

source

pub fn enable_smooth_scrolling(self, enable_smooth_scrolling: bool) -> Self

source

pub fn enable_spatial_navigation(self, enable_spatial_navigation: bool) -> Self

Available on crate feature v2_4 only.
source

pub fn enable_webaudio(self, enable_webaudio: bool) -> Self

source

pub fn enable_webgl(self, enable_webgl: bool) -> Self

source

pub fn enable_webrtc(self, enable_webrtc: bool) -> Self

Available on crate feature v2_38 only.
source

pub fn enable_write_console_messages_to_stdout( self, enable_write_console_messages_to_stdout: bool ) -> Self

Available on crate feature v2_2 only.
source

pub fn enable_xss_auditor(self, enable_xss_auditor: bool) -> Self

👎Deprecated: Since 2.38
source

pub fn fantasy_font_family( self, fantasy_font_family: impl Into<GString> ) -> Self

source

pub fn hardware_acceleration_policy( self, hardware_acceleration_policy: HardwareAccelerationPolicy ) -> Self

Available on crate feature v2_16 only.
source

pub fn javascript_can_access_clipboard( self, javascript_can_access_clipboard: bool ) -> Self

source

pub fn javascript_can_open_windows_automatically( self, javascript_can_open_windows_automatically: bool ) -> Self

source

pub fn load_icons_ignoring_image_load_setting( self, load_icons_ignoring_image_load_setting: bool ) -> Self

source

pub fn media_content_types_requiring_hardware_support( self, media_content_types_requiring_hardware_support: impl Into<GString> ) -> Self

Available on crate feature v2_30 only.
source

pub fn media_playback_allows_inline( self, media_playback_allows_inline: bool ) -> Self

source

pub fn media_playback_requires_user_gesture( self, media_playback_requires_user_gesture: bool ) -> Self

source

pub fn minimum_font_size(self, minimum_font_size: u32) -> Self

source

pub fn monospace_font_family( self, monospace_font_family: impl Into<GString> ) -> Self

source

pub fn pictograph_font_family( self, pictograph_font_family: impl Into<GString> ) -> Self

source

pub fn print_backgrounds(self, print_backgrounds: bool) -> Self

source

pub fn sans_serif_font_family( self, sans_serif_font_family: impl Into<GString> ) -> Self

source

pub fn serif_font_family(self, serif_font_family: impl Into<GString>) -> Self

source

pub fn user_agent(self, user_agent: impl Into<GString>) -> Self

source

pub fn zoom_text_only(self, zoom_text_only: bool) -> Self

source

pub fn build(self) -> Settings

Build the Settings.

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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, U> TryFrom<U> for Twhere 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 Twhere 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.