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

A builder-pattern type to construct WebContext objects.

Implementations§

source§

impl WebContextBuilder

source

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

👎Deprecated: Since 2.10
Available on crate feature v2_8 only.
source

pub fn memory_pressure_settings( self, memory_pressure_settings: &MemoryPressureSettings ) -> Self

Available on crate feature v2_34 only.
source

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

Available on crate feature v2_28 only.
source

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

Available on crate feature v2_38 only.
source

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

Available on crate feature v2_30 only.
source

pub fn website_data_manager( self, website_data_manager: &impl IsA<WebsiteDataManager> ) -> Self

Available on crate feature v2_10 only.
source

pub fn build(self) -> WebContext

Build the WebContext.

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.