Struct SettingsBuilder

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

A builder-pattern type to construct Settings objects.

Implementations§

Source§

impl SettingsBuilder

Source

pub fn new() -> Self

Create a new SettingsBuilder.

Source

pub fn build(self) -> Settings

Build the Settings.

Source

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

Source

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

Source

pub fn cursive_font_family(self, cursive_font_family: &str) -> Self

Source

pub fn default_charset(self, default_charset: &str) -> Self

Source

pub fn default_font_family(self, default_font_family: &str) -> 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 draw_compositing_indicators( self, draw_compositing_indicators: bool, ) -> Self

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_frame_flattening(self, enable_frame_flattening: bool) -> Self

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

Source

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

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

Source

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

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_webaudio(self, enable_webaudio: bool) -> Self

Source

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

Source

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

Source

pub fn fantasy_font_family(self, fantasy_font_family: &str) -> Self

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_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: &str) -> Self

Source

pub fn pictograph_font_family(self, pictograph_font_family: &str) -> Self

Source

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

Source

pub fn sans_serif_font_family(self, sans_serif_font_family: &str) -> Self

Source

pub fn serif_font_family(self, serif_font_family: &str) -> Self

Source

pub fn user_agent(self, user_agent: &str) -> Self

Source

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

Trait Implementations§

Source§

impl Clone for SettingsBuilder

Source§

fn clone(&self) -> SettingsBuilder

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Default for SettingsBuilder

Source§

fn default() -> SettingsBuilder

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

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, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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> 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.