#[repr(C)]
pub struct CoreWebView2CustomSchemeRegistration_Impl { /* private fields */ }

Methods from Deref<Target = CoreWebView2CustomSchemeRegistration>§

source

pub fn scheme_name(&self) -> &str

Equivalent to ICoreWebView2CustomSchemeRegistration::SchemeName without extra memory copies or type conversions.

source

pub unsafe fn treat_as_secure(&self) -> bool

Equivalent to ICoreWebView2CustomSchemeRegistration::TreatAsSecure 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_treat_as_secure(&self, value: bool)

Equivalent to ICoreWebView2CustomSchemeRegistration::SetTreatAsSecure 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 allowed_origins(&self) -> Vec<String>

Equivalent to ICoreWebView2CustomSchemeRegistration::GetAllowedOrigins 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_allowed_origins(&self, value: Vec<String>)

Equivalent to ICoreWebView2CustomSchemeRegistration::SetAllowedOrigins 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 has_authority_component(&self) -> bool

Equivalent to ICoreWebView2CustomSchemeRegistration::HasAuthorityComponent 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_has_authority_component(&self, value: bool)

Equivalent to ICoreWebView2CustomSchemeRegistration::SetHasAuthorityComponent 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.

Trait Implementations§

source§

impl ComObjectInterface<ICoreWebView2CustomSchemeRegistration> for CoreWebView2CustomSchemeRegistration_Impl

source§

fn as_interface_ref( &self, ) -> InterfaceRef<'_, ICoreWebView2CustomSchemeRegistration>

Gets a borrowed interface that is implemented by T.
source§

impl ComObjectInterface<IInspectable> for CoreWebView2CustomSchemeRegistration_Impl

source§

fn as_interface_ref(&self) -> InterfaceRef<'_, IInspectable>

Gets a borrowed interface that is implemented by T.
source§

impl ComObjectInterface<IUnknown> for CoreWebView2CustomSchemeRegistration_Impl

source§

fn as_interface_ref(&self) -> InterfaceRef<'_, IUnknown>

Gets a borrowed interface that is implemented by T.
source§

impl Deref for CoreWebView2CustomSchemeRegistration_Impl

§

type Target = CoreWebView2CustomSchemeRegistration

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl ICoreWebView2CustomSchemeRegistration_Impl for CoreWebView2CustomSchemeRegistration_Impl

source§

fn SchemeName(&self, result: *mut PWSTR) -> Result<()>

source§

fn TreatAsSecure(&self, result: *mut BOOL) -> Result<()>

source§

fn SetTreatAsSecure(&self, value: BOOL) -> Result<()>

source§

fn GetAllowedOrigins( &self, count: *mut u32, results: *mut *mut PWSTR, ) -> Result<()>

source§

fn SetAllowedOrigins(&self, count: u32, values: *const PCWSTR) -> Result<()>

source§

fn HasAuthorityComponent(&self, result: *mut BOOL) -> Result<()>

source§

fn SetHasAuthorityComponent(&self, value: BOOL) -> Result<()>

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.