Struct webview2_com::CoreWebView2EnvironmentOptions

source ·
pub struct CoreWebView2EnvironmentOptions { /* private fields */ }

Implementations§

source§

impl CoreWebView2EnvironmentOptions

source

pub unsafe fn additional_browser_arguments(&self) -> &str

Equivalent to ICoreWebView2EnvironmentOptions::AdditionalBrowserArguments without extra memory copies or type conversions.

§Safety

This method reads from the same UnsafeCell<String> as the COM method, but it does not write to a mutable pointer for the result.

source

pub unsafe fn set_additional_browser_arguments(&self, value: String)

Equivalent to ICoreWebView2EnvironmentOptions::SetAdditionalBrowserArguments without extra memory copies or type conversions.

§Safety

This method writes to the same UnsafeCell<String> as the COM method. It takes an immutable reference to self so that it can be reused in the COM method.

source

pub unsafe fn language(&self) -> &str

Equivalent to ICoreWebView2EnvironmentOptions::Language without extra memory copies or type conversions.

§Safety

This method reads from the same UnsafeCell<String> as the COM method, but it does not write to a mutable pointer for the result.

source

pub unsafe fn set_language(&self, value: String)

Equivalent to ICoreWebView2EnvironmentOptions::SetLanguage without extra memory copies or type conversions.

§Safety

This method writes to the same UnsafeCell<String> as the COM method, but it does not dereference a pointer for the value parameter. It takes an immutable reference to self so that it can be reused in the COM method.

source

pub unsafe fn target_compatible_browser_version(&self) -> &str

Equivalent to ICoreWebView2EnvironmentOptions::TargetCompatibleBrowserVersion without extra memory copies or type conversions.

§Safety

This method reads from the same UnsafeCell<String> as the COM method, but it does not write to a mutable pointer for the result.

source

pub unsafe fn set_target_compatible_browser_version(&self, value: String)

Equivalent to ICoreWebView2EnvironmentOptions::SetTargetCompatibleBrowserVersion without extra memory copies or type conversions.

§Safety

This method writes to the same UnsafeCell<String> as the COM method, but it does not dereference a pointer for the value parameter. It takes an immutable reference to self so that it can be reused in the COM method.

source

pub unsafe fn allow_single_sign_on_using_os_primary_account(&self) -> bool

Equivalent to ICoreWebView2EnvironmentOptions::AllowSingleSignOnUsingOSPrimaryAccount without extra memory copies or type conversions.

§Safety

This method reads from the same UnsafeCell<bool> as the COM method, but it does not write to a mutable pointer for the result.

source

pub unsafe fn set_allow_single_sign_on_using_os_primary_account( &self, value: bool, )

Equivalent to ICoreWebView2EnvironmentOptions::SetAllowSingleSignOnUsingOSPrimaryAccount without extra memory copies or type conversions.

§Safety

This method writes to the same UnsafeCell<bool> as the COM method. It takes an immutable reference to self so that it can be reused in the COM method.

source

pub unsafe fn exclusive_user_data_folder_access(&self) -> bool

Equivalent to ICoreWebView2EnvironmentOptions2::ExclusiveUserDataFolderAccess without extra memory copies or type conversions.

§Safety

This method reads from the same UnsafeCell<bool> as the COM method, but it does not write to a mutable pointer for the result.

source

pub unsafe fn set_exclusive_user_data_folder_access(&self, value: bool)

Equivalent to ICoreWebView2EnvironmentOptions2::SetExclusiveUserDataFolderAccess without extra memory copies or type conversions.

§Safety

This method writes to the same UnsafeCell<bool> as the COM method. It takes an immutable reference to self so that it can be reused in the COM method.

source

pub unsafe fn is_custom_crash_reporting_enabled(&self) -> bool

Equivalent to ICoreWebView2EnvironmentOptions3::IsCustomCrashReportingEnabled without extra memory copies or type conversions.

§Safety

This method reads from the same UnsafeCell<bool> as the COM method, but it does not write to a mutable pointer for the result.

source

pub unsafe fn set_is_custom_crash_reporting_enabled(&self, value: bool)

Equivalent to ICoreWebView2EnvironmentOptions3::SetIsCustomCrashReportingEnabled without extra memory copies or type conversions.

§Safety

This method writes to the same UnsafeCell<bool> as the COM method. It takes an immutable reference to self so that it can be reused in the COM method.

source

pub unsafe fn scheme_registrations( &self, ) -> Vec<Option<ICoreWebView2CustomSchemeRegistration>>

Equivalent to IFixedEnvironmentOptions4::GetCustomSchemeRegistrations without extra memory copies or type conversions.

§Safety

This method reads from the same UnsafeCell<Vec<>> as the COM method, but it does not allocate or write to a mutable pointer for the result.

source

pub unsafe fn set_scheme_registrations( &self, value: Vec<Option<ICoreWebView2CustomSchemeRegistration>>, )

Equivalent to IFixedEnvironmentOptions4::SetCustomSchemeRegistrations without extra memory copies or type conversions.

§Safety

This method writes to the same UnsafeCell<Vec<>> as the COM method. It takes an immutable reference to self for consistency with the other public set methods, however the COM method implementation does not actually reuse it.

source

pub unsafe fn enable_tracking_prevention(&self) -> bool

Equivalent to ICoreWebView2EnvironmentOptions5::EnableTrackingPrevention without extra memory copies or type conversions.

§Safety

This method reads from the same UnsafeCell<bool> as the COM method, but it does not write to a mutable pointer for the result.

source

pub unsafe fn set_enable_tracking_prevention(&self, value: bool)

Equivalent to ICoreWebView2EnvironmentOptions5::SetEnableTrackingPrevention without extra memory copies or type conversions.

§Safety

This method writes to the same UnsafeCell<bool> as the COM method. It takes an immutable reference to self so that it can be reused in the COM method.

source

pub unsafe fn are_browser_extensions_enabled(&self) -> bool

Equivalent to ICoreWebView2EnvironmentOptions6::AreBrowserExtensionsEnabled without extra memory copies or type conversions.

§Safety

This method reads from the same UnsafeCell<bool> as the COM method, but it does not write to a mutable pointer for the result.

source

pub unsafe fn set_are_browser_extensions_enabled(&self, value: bool)

Equivalent to ICoreWebView2EnvironmentOptions6::SetAreBrowserExtensionsEnabled without extra memory copies or type conversions.

§Safety

This method writes to the same UnsafeCell<bool> as the COM method. It takes an immutable reference to self so that it can be reused in the COM method.

source

pub unsafe fn channel_search_kind(&self) -> COREWEBVIEW2_CHANNEL_SEARCH_KIND

Equivalent to ICoreWebView2EnvironmentOptions7::ChannelSearchKind without extra memory copies or type conversions.

§Safety

This method reads from the same UnsafeCell<COREWEBVIEW2_CHANNEL_SEARCH_KIND> as the COM method, but it does not write to a mutable pointer for the result.

source

pub unsafe fn set_channel_search_kind( &self, value: COREWEBVIEW2_CHANNEL_SEARCH_KIND, )

Equivalent to ICoreWebView2EnvironmentOptions7::SetChannelSearchKind without extra memory copies or type conversions.

§Safety

This method writes to the same UnsafeCell<COREWEBVIEW2_CHANNEL_SEARCH_KIND> as the COM method. It takes an immutable reference to self so that it can be reused in the COM method.

source

pub unsafe fn release_channels(&self) -> COREWEBVIEW2_RELEASE_CHANNELS

Equivalent to ICoreWebView2EnvironmentOptions7::ReleaseChannels without extra memory copies or type conversions.

§Safety

This method reads from the same UnsafeCell<COREWEBVIEW2_RELEASE_CHANNELS> as the COM method, but it does not write to a mutable pointer for the result.

source

pub unsafe fn set_release_channels(&self, value: COREWEBVIEW2_RELEASE_CHANNELS)

Equivalent to ICoreWebView2EnvironmentOptions7::SetReleaseChannels without extra memory copies or type conversions.

§Safety

This method writes to the same UnsafeCell<COREWEBVIEW2_RELEASE_CHANNELS> as the COM method. It takes an immutable reference to self so that it can be reused in the COM method.

source

pub unsafe fn scroll_bar_style(&self) -> COREWEBVIEW2_SCROLLBAR_STYLE

Equivalent to ICoreWebView2EnvironmentOptions8::ScrollBarStyle without extra memory copies or type conversions.

§Safety

This method reads from the same UnsafeCell<COREWEBVIEW2_SCROLLBAR_STYLE> as the COM method, but it does not write to a mutable pointer for the result.

source

pub unsafe fn set_scroll_bar_style(&self, value: COREWEBVIEW2_SCROLLBAR_STYLE)

Equivalent to ICoreWebView2EnvironmentOptions8::SetScrollBarStyle without extra memory copies or type conversions.

§Safety

This method writes to the same UnsafeCell<COREWEBVIEW2_SCROLLBAR_STYLE> as the COM method. It takes an immutable reference to self so that it can be reused in the COM method.

Trait Implementations§

source§

impl AsImpl<CoreWebView2EnvironmentOptions> for ICoreWebView2EnvironmentOptions

source§

unsafe fn as_impl_ptr(&self) -> NonNull<CoreWebView2EnvironmentOptions>

Returns a pointer to the implementation object. Read more
source§

unsafe fn as_impl(&self) -> &T

Safety Read more
source§

impl AsImpl<CoreWebView2EnvironmentOptions> for ICoreWebView2EnvironmentOptions2

source§

unsafe fn as_impl_ptr(&self) -> NonNull<CoreWebView2EnvironmentOptions>

Returns a pointer to the implementation object. Read more
source§

unsafe fn as_impl(&self) -> &T

Safety Read more
source§

impl AsImpl<CoreWebView2EnvironmentOptions> for ICoreWebView2EnvironmentOptions3

source§

unsafe fn as_impl_ptr(&self) -> NonNull<CoreWebView2EnvironmentOptions>

Returns a pointer to the implementation object. Read more
source§

unsafe fn as_impl(&self) -> &T

Safety Read more
source§

impl AsImpl<CoreWebView2EnvironmentOptions> for ICoreWebView2EnvironmentOptions5

source§

unsafe fn as_impl_ptr(&self) -> NonNull<CoreWebView2EnvironmentOptions>

Returns a pointer to the implementation object. Read more
source§

unsafe fn as_impl(&self) -> &T

Safety Read more
source§

impl AsImpl<CoreWebView2EnvironmentOptions> for ICoreWebView2EnvironmentOptions6

source§

unsafe fn as_impl_ptr(&self) -> NonNull<CoreWebView2EnvironmentOptions>

Returns a pointer to the implementation object. Read more
source§

unsafe fn as_impl(&self) -> &T

Safety Read more
source§

impl AsImpl<CoreWebView2EnvironmentOptions> for ICoreWebView2EnvironmentOptions7

source§

unsafe fn as_impl_ptr(&self) -> NonNull<CoreWebView2EnvironmentOptions>

Returns a pointer to the implementation object. Read more
source§

unsafe fn as_impl(&self) -> &T

Safety Read more
source§

impl AsImpl<CoreWebView2EnvironmentOptions> for ICoreWebView2EnvironmentOptions8

source§

unsafe fn as_impl_ptr(&self) -> NonNull<CoreWebView2EnvironmentOptions>

Returns a pointer to the implementation object. Read more
source§

unsafe fn as_impl(&self) -> &T

Safety Read more
source§

impl AsImpl<CoreWebView2EnvironmentOptions> for IFixedEnvironmentOptions4

source§

unsafe fn as_impl_ptr(&self) -> NonNull<CoreWebView2EnvironmentOptions>

Returns a pointer to the implementation object. Read more
source§

unsafe fn as_impl(&self) -> &T

Safety Read more
source§

impl AsImpl<CoreWebView2EnvironmentOptions> for IUnknown

source§

unsafe fn as_impl_ptr(&self) -> NonNull<CoreWebView2EnvironmentOptions>

Returns a pointer to the implementation object. Read more
source§

unsafe fn as_impl(&self) -> &T

Safety Read more
source§

impl ComObjectInner for CoreWebView2EnvironmentOptions

§

type Outer = CoreWebView2EnvironmentOptions_Impl

The generated <foo>_Impl type (aka the “boxed” type or “outer” type).
source§

fn into_object(self) -> ComObject<Self>

Moves an instance of this type into a new ComObject box and returns it. Read more
source§

impl Default for CoreWebView2EnvironmentOptions

source§

fn default() -> Self

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

impl From<CoreWebView2EnvironmentOptions> for ICoreWebView2EnvironmentOptions

source§

fn from(this: CoreWebView2EnvironmentOptions) -> Self

Converts to this type from the input type.
source§

impl From<CoreWebView2EnvironmentOptions> for ICoreWebView2EnvironmentOptions2

source§

fn from(this: CoreWebView2EnvironmentOptions) -> Self

Converts to this type from the input type.
source§

impl From<CoreWebView2EnvironmentOptions> for ICoreWebView2EnvironmentOptions3

source§

fn from(this: CoreWebView2EnvironmentOptions) -> Self

Converts to this type from the input type.
source§

impl From<CoreWebView2EnvironmentOptions> for ICoreWebView2EnvironmentOptions5

source§

fn from(this: CoreWebView2EnvironmentOptions) -> Self

Converts to this type from the input type.
source§

impl From<CoreWebView2EnvironmentOptions> for ICoreWebView2EnvironmentOptions6

source§

fn from(this: CoreWebView2EnvironmentOptions) -> Self

Converts to this type from the input type.
source§

impl From<CoreWebView2EnvironmentOptions> for ICoreWebView2EnvironmentOptions7

source§

fn from(this: CoreWebView2EnvironmentOptions) -> Self

Converts to this type from the input type.
source§

impl From<CoreWebView2EnvironmentOptions> for ICoreWebView2EnvironmentOptions8

source§

fn from(this: CoreWebView2EnvironmentOptions) -> Self

Converts to this type from the input type.
source§

impl From<CoreWebView2EnvironmentOptions> for IFixedEnvironmentOptions4

source§

fn from(this: CoreWebView2EnvironmentOptions) -> Self

Converts to this type from the input type.
source§

impl From<CoreWebView2EnvironmentOptions> for IInspectable

source§

fn from(this: CoreWebView2EnvironmentOptions) -> Self

Converts to this type from the input type.
source§

impl From<CoreWebView2EnvironmentOptions> for IUnknown

source§

fn from(this: CoreWebView2EnvironmentOptions) -> Self

Converts to this type from the input type.

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> 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, U> TryFrom<U> for T
where 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 T
where 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.