pub struct CoreWebView2Environment(/* private fields */);
Implementations§
Source§impl CoreWebView2Environment
impl CoreWebView2Environment
pub fn BrowserVersionString(&self) -> Result<HString>
pub fn NewBrowserVersionAvailable<'a, T0__: IntoParam<'a, TypedEventHandler<CoreWebView2Environment, Object>>>( &self, handler: T0__, ) -> Result<EventRegistrationToken>
pub fn RemoveNewBrowserVersionAvailable<'a, T0__: IntoParam<'a, EventRegistrationToken>>( &self, token: T0__, ) -> Result<()>
pub fn CreateCoreWebView2ControllerAsync<'a, T0__: IntoParam<'a, CoreWebView2ControllerWindowReference>>( &self, parentwindow: T0__, ) -> Result<IAsyncOperation<CoreWebView2Controller>>
pub fn CreateWebResourceResponse<'a, T0__: IntoParam<'a, IRandomAccessStream>, T2__: IntoParam<'a, HString>, T3__: IntoParam<'a, HString>>( &self, content: T0__, statuscode: i32, reasonphrase: T2__, headers: T3__, ) -> Result<CoreWebView2WebResourceResponse>
pub fn CreateWebResourceRequest<'a, T0__: IntoParam<'a, HString>, T1__: IntoParam<'a, HString>, T2__: IntoParam<'a, IRandomAccessStream>, T3__: IntoParam<'a, HString>>( &self, uri: T0__, method: T1__, postdata: T2__, headers: T3__, ) -> Result<CoreWebView2WebResourceRequest>
pub fn CreateCoreWebView2CompositionControllerAsync<'a, T0__: IntoParam<'a, CoreWebView2ControllerWindowReference>>( &self, parentwindow: T0__, ) -> Result<IAsyncOperation<CoreWebView2CompositionController>>
pub fn CreateCoreWebView2PointerInfo(&self) -> Result<CoreWebView2PointerInfo>
pub fn CreateAsync() -> Result<IAsyncOperation<CoreWebView2Environment>>
pub fn CreateWithOptionsAsync<'a, T0__: IntoParam<'a, HString>, T1__: IntoParam<'a, HString>, T2__: IntoParam<'a, CoreWebView2EnvironmentOptions>>( browserexecutablefolder: T0__, userdatafolder: T1__, options: T2__, ) -> Result<IAsyncOperation<CoreWebView2Environment>>
pub fn GetAvailableBrowserVersionString() -> Result<HString>
pub fn GetAvailableBrowserVersionString2<'a, T0__: IntoParam<'a, HString>>( browserexecutablefolder: T0__, ) -> Result<HString>
pub fn CompareBrowserVersionString<'a, T0__: IntoParam<'a, HString>, T1__: IntoParam<'a, HString>>( browserversionstring1: T0__, browserversionstring2: T1__, ) -> Result<i32>
Trait Implementations§
Source§impl Clone for CoreWebView2Environment
impl Clone for CoreWebView2Environment
Source§fn clone(&self) -> CoreWebView2Environment
fn clone(&self) -> CoreWebView2Environment
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CoreWebView2Environment
impl Debug for CoreWebView2Environment
Source§impl From<&CoreWebView2Environment> for Object
impl From<&CoreWebView2Environment> for Object
Source§fn from(value: &CoreWebView2Environment) -> Self
fn from(value: &CoreWebView2Environment) -> Self
Converts to this type from the input type.
Source§impl From<CoreWebView2Environment> for Object
impl From<CoreWebView2Environment> for Object
Source§fn from(value: CoreWebView2Environment) -> Self
fn from(value: CoreWebView2Environment) -> Self
Converts to this type from the input type.
Source§impl Interface for CoreWebView2Environment
impl Interface for CoreWebView2Environment
const IID: Guid
type Vtable = ICoreWebView2Environment_abi
Source§impl<'a> IntoParam<'a, Object> for &'a CoreWebView2Environment
impl<'a> IntoParam<'a, Object> for &'a CoreWebView2Environment
fn into_param(self) -> Param<'a, Object>
Source§impl<'a> IntoParam<'a, Object> for CoreWebView2Environment
impl<'a> IntoParam<'a, Object> for CoreWebView2Environment
fn into_param(self) -> Param<'a, Object>
Source§impl PartialEq for CoreWebView2Environment
impl PartialEq for CoreWebView2Environment
impl Eq for CoreWebView2Environment
impl Send for CoreWebView2Environment
impl StructuralPartialEq for CoreWebView2Environment
impl Sync for CoreWebView2Environment
Auto Trait Implementations§
impl Freeze for CoreWebView2Environment
impl RefUnwindSafe for CoreWebView2Environment
impl Unpin for CoreWebView2Environment
impl UnwindSafe for CoreWebView2Environment
Blanket Implementations§
Source§impl<T> Abi for Twhere
T: Interface,
impl<T> Abi for Twhere
T: Interface,
Source§fn set_abi(&mut self) -> *mut <T as Abi>::Abi
fn set_abi(&mut self) -> *mut <T as Abi>::Abi
Returns a pointer for setting the object’s value via an ABI call.
Source§unsafe fn from_abi(abi: <T as Abi>::Abi) -> Result<T, Error>
unsafe fn from_abi(abi: <T as Abi>::Abi) -> Result<T, Error>
Casts the ABI representation to a Rust object by taking ownership of the bits.
fn drop_param(_: &mut Param<'_, Self>)
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