pub struct EnvironmentBuilder<'a> { /* private fields */ }
Expand description
A builder for calling the CreateCoreWebView2EnvironmentWithOptions
function.
Use Environment::builder() to create one.
Implementations§
Source§impl<'a> EnvironmentBuilder<'a>
impl<'a> EnvironmentBuilder<'a>
pub fn with_browser_executable_folder( self, browser_executable_folder: &'a Path, ) -> Self
pub fn with_user_data_folder(self, user_data_folder: &'a Path) -> Self
pub fn with_additional_browser_arguments( self, additional_browser_arguments: &'a str, ) -> Self
pub fn with_language(self, language: &'a str) -> Self
pub fn with_target_compatible_browser_version(self, version: &'a str) -> Self
pub fn with_allow_single_sign_on_using_osprimary_account( self, allow: bool, ) -> Self
Sourcepub fn get_available_browser_version_string(&self) -> Result<String>
pub fn get_available_browser_version_string(&self) -> Result<String>
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>
👎Deprecated: use webview2::compare_browser_versions instead
pub fn build( &self, completed: impl FnOnce(Result<Environment>) -> Result<()> + 'static, ) -> Result<()>
Trait Implementations§
Source§impl<'a> Default for EnvironmentBuilder<'a>
impl<'a> Default for EnvironmentBuilder<'a>
Source§fn default() -> EnvironmentBuilder<'a>
fn default() -> EnvironmentBuilder<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for EnvironmentBuilder<'a>
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§
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