Struct webview2::EnvironmentBuilder[][src]

pub struct EnvironmentBuilder<'a> { /* fields omitted */ }

A builder for calling the CreateCoreWebView2EnvironmentWithOptions function.

Use Environment::builder() to create one.

Implementations

impl<'a> EnvironmentBuilder<'a>[src]

pub fn with_browser_executable_folder(
    self,
    browser_executable_folder: &'a Path
) -> Self
[src]

pub fn with_user_data_folder(self, user_data_folder: &'a Path) -> Self[src]

pub fn with_additional_browser_arguments(
    self,
    additional_browser_arguments: &'a str
) -> Self
[src]

pub fn with_language(self, language: &'a str) -> Self[src]

pub fn with_target_compatible_browser_version(self, version: &'a str) -> Self[src]

pub fn with_allow_single_sign_on_using_osprimary_account(
    self,
    allow: bool
) -> Self
[src]

pub fn get_available_browser_version_string(&self) -> Result<String>[src]

Get available browser version string (within the browser_executable_folder if it is specified.)

pub fn compare_browser_versions(
    &self,
    version1: &str,
    version2: &str
) -> Result<Ordering>
[src]

👎 Deprecated:

use webview2::compare_browser_versions instead

pub fn build(
    &self,
    completed: impl FnOnce(Result<Environment>) -> Result<()> + 'static
) -> Result<()>
[src]

Trait Implementations

impl<'a> Default for EnvironmentBuilder<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for EnvironmentBuilder<'a>

impl<'a> Send for EnvironmentBuilder<'a>

impl<'a> Sync for EnvironmentBuilder<'a>

impl<'a> Unpin for EnvironmentBuilder<'a>

impl<'a> UnwindSafe for EnvironmentBuilder<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.