pub struct ICoreWebView2(/* private fields */);Implementations§
Source§impl ICoreWebView2
impl ICoreWebView2
pub unsafe fn Settings(&self) -> Result<ICoreWebView2Settings>
pub unsafe fn Source(&self) -> Result<PWSTR>
pub unsafe fn ContentLoading<P0>(&self, eventhandler: P0) -> Result<i64>where
P0: Param<ICoreWebView2ContentLoadingEventHandler>,
pub unsafe fn RemoveContentLoading(&self, token: i64) -> Result<()>
pub unsafe fn SourceChanged<P0>(&self, eventhandler: P0) -> Result<i64>where
P0: Param<ICoreWebView2SourceChangedEventHandler>,
pub unsafe fn RemoveSourceChanged(&self, token: i64) -> Result<()>
pub unsafe fn HistoryChanged<P0>(&self, eventhandler: P0) -> Result<i64>where
P0: Param<ICoreWebView2HistoryChangedEventHandler>,
pub unsafe fn RemoveHistoryChanged(&self, token: i64) -> Result<()>
pub unsafe fn ScriptDialogOpening<P0>(&self, eventhandler: P0) -> Result<i64>where
P0: Param<ICoreWebView2ScriptDialogOpeningEventHandler>,
pub unsafe fn RemoveScriptDialogOpening(&self, token: i64) -> Result<()>
pub unsafe fn PermissionRequested<P0>(&self, eventhandler: P0) -> Result<i64>where
P0: Param<ICoreWebView2PermissionRequestedEventHandler>,
pub unsafe fn RemovePermissionRequested(&self, token: i64) -> Result<()>
pub unsafe fn ProcessFailed<P0>(&self, eventhandler: P0) -> Result<i64>where
P0: Param<ICoreWebView2ProcessFailedEventHandler>,
pub unsafe fn RemoveProcessFailed(&self, token: i64) -> Result<()>
pub unsafe fn AddScriptToExecuteOnDocumentCreated<P0, P1>(
&self,
javascript: P0,
handler: P1,
) -> Result<()>where
P0: Param<PCWSTR>,
P1: Param<ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler>,
pub unsafe fn RemoveScriptToExecuteOnDocumentCreated<P0>( &self, id: P0, ) -> Result<()>
pub unsafe fn ExecuteScript<P0, P1>( &self, javascript: P0, handler: P1, ) -> Result<()>
pub unsafe fn CapturePreview<P1, P2>( &self, imageformat: COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT, imagestream: P1, handler: P2, ) -> Result<()>
pub unsafe fn Reload(&self) -> Result<()>
pub unsafe fn PostWebMessageAsJson<P0>( &self, webmessageasjson: P0, ) -> Result<()>
pub unsafe fn PostWebMessageAsString<P0>( &self, webmessageasstring: P0, ) -> Result<()>
pub unsafe fn WebMessageReceived<P0>(&self, handler: P0) -> Result<i64>where
P0: Param<ICoreWebView2WebMessageReceivedEventHandler>,
pub unsafe fn RemoveWebMessageReceived(&self, token: i64) -> Result<()>
pub unsafe fn CallDevToolsProtocolMethod<P0, P1, P2>( &self, methodname: P0, parametersasjson: P1, handler: P2, ) -> Result<()>
pub unsafe fn BrowserProcessId(&self) -> Result<u32>
pub unsafe fn CanGoBack(&self) -> Result<BOOL>
pub unsafe fn CanGoForward(&self) -> Result<BOOL>
pub unsafe fn GoBack(&self) -> Result<()>
pub unsafe fn GoForward(&self) -> Result<()>
pub unsafe fn GetDevToolsProtocolEventReceiver<P0>( &self, eventname: P0, ) -> Result<ICoreWebView2DevToolsProtocolEventReceiver>
pub unsafe fn Stop(&self) -> Result<()>
pub unsafe fn NewWindowRequested<P0>(&self, eventhandler: P0) -> Result<i64>where
P0: Param<ICoreWebView2NewWindowRequestedEventHandler>,
pub unsafe fn RemoveNewWindowRequested(&self, token: i64) -> Result<()>
pub unsafe fn DocumentTitleChanged<P0>(&self, eventhandler: P0) -> Result<i64>where
P0: Param<ICoreWebView2DocumentTitleChangedEventHandler>,
pub unsafe fn RemoveDocumentTitleChanged(&self, token: i64) -> Result<()>
pub unsafe fn DocumentTitle(&self) -> Result<PWSTR>
pub unsafe fn AddHostObjectToScript<P0>( &self, name: P0, object: *mut VARIANT, ) -> Result<()>
pub unsafe fn RemoveHostObjectFromScript<P0>(&self, name: P0) -> Result<()>
pub unsafe fn OpenDevToolsWindow(&self) -> Result<()>
pub unsafe fn ContainsFullScreenElementChanged<P0>( &self, eventhandler: P0, ) -> Result<i64>
pub unsafe fn RemoveContainsFullScreenElementChanged( &self, token: i64, ) -> Result<()>
pub unsafe fn ContainsFullScreenElement(&self) -> Result<BOOL>
pub unsafe fn WebResourceRequested<P0>(&self, eventhandler: P0) -> Result<i64>where
P0: Param<ICoreWebView2WebResourceRequestedEventHandler>,
pub unsafe fn RemoveWebResourceRequested(&self, token: i64) -> Result<()>
pub unsafe fn AddWebResourceRequestedFilter<P0>( &self, uri: P0, resourcecontext: COREWEBVIEW2_WEB_RESOURCE_CONTEXT, ) -> Result<()>
pub unsafe fn RemoveWebResourceRequestedFilter<P0>( &self, uri: P0, resourcecontext: COREWEBVIEW2_WEB_RESOURCE_CONTEXT, ) -> Result<()>
pub unsafe fn WindowCloseRequested<P0>(&self, eventhandler: P0) -> Result<i64>where
P0: Param<ICoreWebView2WindowCloseRequestedEventHandler>,
pub unsafe fn RemoveWindowCloseRequested(&self, token: i64) -> Result<()>
Trait Implementations§
Source§impl CanInto<ICoreWebView2> for ICoreWebView2_10
impl CanInto<ICoreWebView2> for ICoreWebView2_10
Source§impl CanInto<ICoreWebView2> for ICoreWebView2_11
impl CanInto<ICoreWebView2> for ICoreWebView2_11
Source§impl CanInto<ICoreWebView2> for ICoreWebView2_12
impl CanInto<ICoreWebView2> for ICoreWebView2_12
Source§impl CanInto<ICoreWebView2> for ICoreWebView2_13
impl CanInto<ICoreWebView2> for ICoreWebView2_13
Source§impl CanInto<ICoreWebView2> for ICoreWebView2_14
impl CanInto<ICoreWebView2> for ICoreWebView2_14
Source§impl CanInto<ICoreWebView2> for ICoreWebView2_15
impl CanInto<ICoreWebView2> for ICoreWebView2_15
Source§impl CanInto<ICoreWebView2> for ICoreWebView2_16
impl CanInto<ICoreWebView2> for ICoreWebView2_16
Source§impl CanInto<ICoreWebView2> for ICoreWebView2_17
impl CanInto<ICoreWebView2> for ICoreWebView2_17
Source§impl CanInto<ICoreWebView2> for ICoreWebView2_18
impl CanInto<ICoreWebView2> for ICoreWebView2_18
Source§impl CanInto<ICoreWebView2> for ICoreWebView2_19
impl CanInto<ICoreWebView2> for ICoreWebView2_19
Source§impl CanInto<ICoreWebView2> for ICoreWebView2_2
impl CanInto<ICoreWebView2> for ICoreWebView2_2
Source§impl CanInto<ICoreWebView2> for ICoreWebView2_20
impl CanInto<ICoreWebView2> for ICoreWebView2_20
Source§impl CanInto<ICoreWebView2> for ICoreWebView2_21
impl CanInto<ICoreWebView2> for ICoreWebView2_21
Source§impl CanInto<ICoreWebView2> for ICoreWebView2_22
impl CanInto<ICoreWebView2> for ICoreWebView2_22
Source§impl CanInto<ICoreWebView2> for ICoreWebView2_23
impl CanInto<ICoreWebView2> for ICoreWebView2_23
Source§impl CanInto<ICoreWebView2> for ICoreWebView2_24
impl CanInto<ICoreWebView2> for ICoreWebView2_24
Source§impl CanInto<ICoreWebView2> for ICoreWebView2_25
impl CanInto<ICoreWebView2> for ICoreWebView2_25
Source§impl CanInto<ICoreWebView2> for ICoreWebView2_26
impl CanInto<ICoreWebView2> for ICoreWebView2_26
Source§impl CanInto<ICoreWebView2> for ICoreWebView2_27
impl CanInto<ICoreWebView2> for ICoreWebView2_27
Source§impl CanInto<ICoreWebView2> for ICoreWebView2_28
impl CanInto<ICoreWebView2> for ICoreWebView2_28
Source§impl CanInto<ICoreWebView2> for ICoreWebView2_3
impl CanInto<ICoreWebView2> for ICoreWebView2_3
Source§impl CanInto<ICoreWebView2> for ICoreWebView2_4
impl CanInto<ICoreWebView2> for ICoreWebView2_4
Source§impl CanInto<ICoreWebView2> for ICoreWebView2_5
impl CanInto<ICoreWebView2> for ICoreWebView2_5
Source§impl CanInto<ICoreWebView2> for ICoreWebView2_6
impl CanInto<ICoreWebView2> for ICoreWebView2_6
Source§impl CanInto<ICoreWebView2> for ICoreWebView2_7
impl CanInto<ICoreWebView2> for ICoreWebView2_7
Source§impl CanInto<ICoreWebView2> for ICoreWebView2_8
impl CanInto<ICoreWebView2> for ICoreWebView2_8
Source§impl CanInto<ICoreWebView2> for ICoreWebView2_9
impl CanInto<ICoreWebView2> for ICoreWebView2_9
Source§impl Clone for ICoreWebView2
impl Clone for ICoreWebView2
Source§fn clone(&self) -> ICoreWebView2
fn clone(&self) -> ICoreWebView2
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ICoreWebView2
impl Debug for ICoreWebView2
Source§impl From<&ICoreWebView2> for &IUnknown
impl From<&ICoreWebView2> for &IUnknown
Source§fn from(value: &ICoreWebView2) -> Self
fn from(value: &ICoreWebView2) -> Self
Converts to this type from the input type.
Source§impl From<&ICoreWebView2_10> for &ICoreWebView2
impl From<&ICoreWebView2_10> for &ICoreWebView2
Source§fn from(value: &ICoreWebView2_10) -> Self
fn from(value: &ICoreWebView2_10) -> Self
Converts to this type from the input type.
Source§impl From<&ICoreWebView2_11> for &ICoreWebView2
impl From<&ICoreWebView2_11> for &ICoreWebView2
Source§fn from(value: &ICoreWebView2_11) -> Self
fn from(value: &ICoreWebView2_11) -> Self
Converts to this type from the input type.
Source§impl From<&ICoreWebView2_12> for &ICoreWebView2
impl From<&ICoreWebView2_12> for &ICoreWebView2
Source§fn from(value: &ICoreWebView2_12) -> Self
fn from(value: &ICoreWebView2_12) -> Self
Converts to this type from the input type.
Source§impl From<&ICoreWebView2_13> for &ICoreWebView2
impl From<&ICoreWebView2_13> for &ICoreWebView2
Source§fn from(value: &ICoreWebView2_13) -> Self
fn from(value: &ICoreWebView2_13) -> Self
Converts to this type from the input type.
Source§impl From<&ICoreWebView2_14> for &ICoreWebView2
impl From<&ICoreWebView2_14> for &ICoreWebView2
Source§fn from(value: &ICoreWebView2_14) -> Self
fn from(value: &ICoreWebView2_14) -> Self
Converts to this type from the input type.
Source§impl From<&ICoreWebView2_15> for &ICoreWebView2
impl From<&ICoreWebView2_15> for &ICoreWebView2
Source§fn from(value: &ICoreWebView2_15) -> Self
fn from(value: &ICoreWebView2_15) -> Self
Converts to this type from the input type.
Source§impl From<&ICoreWebView2_16> for &ICoreWebView2
impl From<&ICoreWebView2_16> for &ICoreWebView2
Source§fn from(value: &ICoreWebView2_16) -> Self
fn from(value: &ICoreWebView2_16) -> Self
Converts to this type from the input type.
Source§impl From<&ICoreWebView2_17> for &ICoreWebView2
impl From<&ICoreWebView2_17> for &ICoreWebView2
Source§fn from(value: &ICoreWebView2_17) -> Self
fn from(value: &ICoreWebView2_17) -> Self
Converts to this type from the input type.
Source§impl From<&ICoreWebView2_18> for &ICoreWebView2
impl From<&ICoreWebView2_18> for &ICoreWebView2
Source§fn from(value: &ICoreWebView2_18) -> Self
fn from(value: &ICoreWebView2_18) -> Self
Converts to this type from the input type.
Source§impl From<&ICoreWebView2_19> for &ICoreWebView2
impl From<&ICoreWebView2_19> for &ICoreWebView2
Source§fn from(value: &ICoreWebView2_19) -> Self
fn from(value: &ICoreWebView2_19) -> Self
Converts to this type from the input type.
Source§impl From<&ICoreWebView2_2> for &ICoreWebView2
impl From<&ICoreWebView2_2> for &ICoreWebView2
Source§fn from(value: &ICoreWebView2_2) -> Self
fn from(value: &ICoreWebView2_2) -> Self
Converts to this type from the input type.
Source§impl From<&ICoreWebView2_20> for &ICoreWebView2
impl From<&ICoreWebView2_20> for &ICoreWebView2
Source§fn from(value: &ICoreWebView2_20) -> Self
fn from(value: &ICoreWebView2_20) -> Self
Converts to this type from the input type.
Source§impl From<&ICoreWebView2_21> for &ICoreWebView2
impl From<&ICoreWebView2_21> for &ICoreWebView2
Source§fn from(value: &ICoreWebView2_21) -> Self
fn from(value: &ICoreWebView2_21) -> Self
Converts to this type from the input type.
Source§impl From<&ICoreWebView2_22> for &ICoreWebView2
impl From<&ICoreWebView2_22> for &ICoreWebView2
Source§fn from(value: &ICoreWebView2_22) -> Self
fn from(value: &ICoreWebView2_22) -> Self
Converts to this type from the input type.
Source§impl From<&ICoreWebView2_23> for &ICoreWebView2
impl From<&ICoreWebView2_23> for &ICoreWebView2
Source§fn from(value: &ICoreWebView2_23) -> Self
fn from(value: &ICoreWebView2_23) -> Self
Converts to this type from the input type.
Source§impl From<&ICoreWebView2_24> for &ICoreWebView2
impl From<&ICoreWebView2_24> for &ICoreWebView2
Source§fn from(value: &ICoreWebView2_24) -> Self
fn from(value: &ICoreWebView2_24) -> Self
Converts to this type from the input type.
Source§impl From<&ICoreWebView2_25> for &ICoreWebView2
impl From<&ICoreWebView2_25> for &ICoreWebView2
Source§fn from(value: &ICoreWebView2_25) -> Self
fn from(value: &ICoreWebView2_25) -> Self
Converts to this type from the input type.
Source§impl From<&ICoreWebView2_26> for &ICoreWebView2
impl From<&ICoreWebView2_26> for &ICoreWebView2
Source§fn from(value: &ICoreWebView2_26) -> Self
fn from(value: &ICoreWebView2_26) -> Self
Converts to this type from the input type.
Source§impl From<&ICoreWebView2_27> for &ICoreWebView2
impl From<&ICoreWebView2_27> for &ICoreWebView2
Source§fn from(value: &ICoreWebView2_27) -> Self
fn from(value: &ICoreWebView2_27) -> Self
Converts to this type from the input type.
Source§impl From<&ICoreWebView2_28> for &ICoreWebView2
impl From<&ICoreWebView2_28> for &ICoreWebView2
Source§fn from(value: &ICoreWebView2_28) -> Self
fn from(value: &ICoreWebView2_28) -> Self
Converts to this type from the input type.
Source§impl From<&ICoreWebView2_3> for &ICoreWebView2
impl From<&ICoreWebView2_3> for &ICoreWebView2
Source§fn from(value: &ICoreWebView2_3) -> Self
fn from(value: &ICoreWebView2_3) -> Self
Converts to this type from the input type.
Source§impl From<&ICoreWebView2_4> for &ICoreWebView2
impl From<&ICoreWebView2_4> for &ICoreWebView2
Source§fn from(value: &ICoreWebView2_4) -> Self
fn from(value: &ICoreWebView2_4) -> Self
Converts to this type from the input type.
Source§impl From<&ICoreWebView2_5> for &ICoreWebView2
impl From<&ICoreWebView2_5> for &ICoreWebView2
Source§fn from(value: &ICoreWebView2_5) -> Self
fn from(value: &ICoreWebView2_5) -> Self
Converts to this type from the input type.
Source§impl From<&ICoreWebView2_6> for &ICoreWebView2
impl From<&ICoreWebView2_6> for &ICoreWebView2
Source§fn from(value: &ICoreWebView2_6) -> Self
fn from(value: &ICoreWebView2_6) -> Self
Converts to this type from the input type.
Source§impl From<&ICoreWebView2_7> for &ICoreWebView2
impl From<&ICoreWebView2_7> for &ICoreWebView2
Source§fn from(value: &ICoreWebView2_7) -> Self
fn from(value: &ICoreWebView2_7) -> Self
Converts to this type from the input type.
Source§impl From<&ICoreWebView2_8> for &ICoreWebView2
impl From<&ICoreWebView2_8> for &ICoreWebView2
Source§fn from(value: &ICoreWebView2_8) -> Self
fn from(value: &ICoreWebView2_8) -> Self
Converts to this type from the input type.
Source§impl From<&ICoreWebView2_9> for &ICoreWebView2
impl From<&ICoreWebView2_9> for &ICoreWebView2
Source§fn from(value: &ICoreWebView2_9) -> Self
fn from(value: &ICoreWebView2_9) -> Self
Converts to this type from the input type.
Source§impl From<ICoreWebView2> for IUnknown
impl From<ICoreWebView2> for IUnknown
Source§fn from(value: ICoreWebView2) -> Self
fn from(value: ICoreWebView2) -> Self
Converts to this type from the input type.
Source§impl From<ICoreWebView2_10> for ICoreWebView2
impl From<ICoreWebView2_10> for ICoreWebView2
Source§fn from(value: ICoreWebView2_10) -> Self
fn from(value: ICoreWebView2_10) -> Self
Converts to this type from the input type.
Source§impl From<ICoreWebView2_11> for ICoreWebView2
impl From<ICoreWebView2_11> for ICoreWebView2
Source§fn from(value: ICoreWebView2_11) -> Self
fn from(value: ICoreWebView2_11) -> Self
Converts to this type from the input type.
Source§impl From<ICoreWebView2_12> for ICoreWebView2
impl From<ICoreWebView2_12> for ICoreWebView2
Source§fn from(value: ICoreWebView2_12) -> Self
fn from(value: ICoreWebView2_12) -> Self
Converts to this type from the input type.
Source§impl From<ICoreWebView2_13> for ICoreWebView2
impl From<ICoreWebView2_13> for ICoreWebView2
Source§fn from(value: ICoreWebView2_13) -> Self
fn from(value: ICoreWebView2_13) -> Self
Converts to this type from the input type.
Source§impl From<ICoreWebView2_14> for ICoreWebView2
impl From<ICoreWebView2_14> for ICoreWebView2
Source§fn from(value: ICoreWebView2_14) -> Self
fn from(value: ICoreWebView2_14) -> Self
Converts to this type from the input type.
Source§impl From<ICoreWebView2_15> for ICoreWebView2
impl From<ICoreWebView2_15> for ICoreWebView2
Source§fn from(value: ICoreWebView2_15) -> Self
fn from(value: ICoreWebView2_15) -> Self
Converts to this type from the input type.
Source§impl From<ICoreWebView2_16> for ICoreWebView2
impl From<ICoreWebView2_16> for ICoreWebView2
Source§fn from(value: ICoreWebView2_16) -> Self
fn from(value: ICoreWebView2_16) -> Self
Converts to this type from the input type.
Source§impl From<ICoreWebView2_17> for ICoreWebView2
impl From<ICoreWebView2_17> for ICoreWebView2
Source§fn from(value: ICoreWebView2_17) -> Self
fn from(value: ICoreWebView2_17) -> Self
Converts to this type from the input type.
Source§impl From<ICoreWebView2_18> for ICoreWebView2
impl From<ICoreWebView2_18> for ICoreWebView2
Source§fn from(value: ICoreWebView2_18) -> Self
fn from(value: ICoreWebView2_18) -> Self
Converts to this type from the input type.
Source§impl From<ICoreWebView2_19> for ICoreWebView2
impl From<ICoreWebView2_19> for ICoreWebView2
Source§fn from(value: ICoreWebView2_19) -> Self
fn from(value: ICoreWebView2_19) -> Self
Converts to this type from the input type.
Source§impl From<ICoreWebView2_2> for ICoreWebView2
impl From<ICoreWebView2_2> for ICoreWebView2
Source§fn from(value: ICoreWebView2_2) -> Self
fn from(value: ICoreWebView2_2) -> Self
Converts to this type from the input type.
Source§impl From<ICoreWebView2_20> for ICoreWebView2
impl From<ICoreWebView2_20> for ICoreWebView2
Source§fn from(value: ICoreWebView2_20) -> Self
fn from(value: ICoreWebView2_20) -> Self
Converts to this type from the input type.
Source§impl From<ICoreWebView2_21> for ICoreWebView2
impl From<ICoreWebView2_21> for ICoreWebView2
Source§fn from(value: ICoreWebView2_21) -> Self
fn from(value: ICoreWebView2_21) -> Self
Converts to this type from the input type.
Source§impl From<ICoreWebView2_22> for ICoreWebView2
impl From<ICoreWebView2_22> for ICoreWebView2
Source§fn from(value: ICoreWebView2_22) -> Self
fn from(value: ICoreWebView2_22) -> Self
Converts to this type from the input type.
Source§impl From<ICoreWebView2_23> for ICoreWebView2
impl From<ICoreWebView2_23> for ICoreWebView2
Source§fn from(value: ICoreWebView2_23) -> Self
fn from(value: ICoreWebView2_23) -> Self
Converts to this type from the input type.
Source§impl From<ICoreWebView2_24> for ICoreWebView2
impl From<ICoreWebView2_24> for ICoreWebView2
Source§fn from(value: ICoreWebView2_24) -> Self
fn from(value: ICoreWebView2_24) -> Self
Converts to this type from the input type.
Source§impl From<ICoreWebView2_25> for ICoreWebView2
impl From<ICoreWebView2_25> for ICoreWebView2
Source§fn from(value: ICoreWebView2_25) -> Self
fn from(value: ICoreWebView2_25) -> Self
Converts to this type from the input type.
Source§impl From<ICoreWebView2_26> for ICoreWebView2
impl From<ICoreWebView2_26> for ICoreWebView2
Source§fn from(value: ICoreWebView2_26) -> Self
fn from(value: ICoreWebView2_26) -> Self
Converts to this type from the input type.
Source§impl From<ICoreWebView2_27> for ICoreWebView2
impl From<ICoreWebView2_27> for ICoreWebView2
Source§fn from(value: ICoreWebView2_27) -> Self
fn from(value: ICoreWebView2_27) -> Self
Converts to this type from the input type.
Source§impl From<ICoreWebView2_28> for ICoreWebView2
impl From<ICoreWebView2_28> for ICoreWebView2
Source§fn from(value: ICoreWebView2_28) -> Self
fn from(value: ICoreWebView2_28) -> Self
Converts to this type from the input type.
Source§impl From<ICoreWebView2_3> for ICoreWebView2
impl From<ICoreWebView2_3> for ICoreWebView2
Source§fn from(value: ICoreWebView2_3) -> Self
fn from(value: ICoreWebView2_3) -> Self
Converts to this type from the input type.
Source§impl From<ICoreWebView2_4> for ICoreWebView2
impl From<ICoreWebView2_4> for ICoreWebView2
Source§fn from(value: ICoreWebView2_4) -> Self
fn from(value: ICoreWebView2_4) -> Self
Converts to this type from the input type.
Source§impl From<ICoreWebView2_5> for ICoreWebView2
impl From<ICoreWebView2_5> for ICoreWebView2
Source§fn from(value: ICoreWebView2_5) -> Self
fn from(value: ICoreWebView2_5) -> Self
Converts to this type from the input type.
Source§impl From<ICoreWebView2_6> for ICoreWebView2
impl From<ICoreWebView2_6> for ICoreWebView2
Source§fn from(value: ICoreWebView2_6) -> Self
fn from(value: ICoreWebView2_6) -> Self
Converts to this type from the input type.
Source§impl From<ICoreWebView2_7> for ICoreWebView2
impl From<ICoreWebView2_7> for ICoreWebView2
Source§fn from(value: ICoreWebView2_7) -> Self
fn from(value: ICoreWebView2_7) -> Self
Converts to this type from the input type.
Source§impl From<ICoreWebView2_8> for ICoreWebView2
impl From<ICoreWebView2_8> for ICoreWebView2
Source§fn from(value: ICoreWebView2_8) -> Self
fn from(value: ICoreWebView2_8) -> Self
Converts to this type from the input type.
Source§impl From<ICoreWebView2_9> for ICoreWebView2
impl From<ICoreWebView2_9> for ICoreWebView2
Source§fn from(value: ICoreWebView2_9) -> Self
fn from(value: ICoreWebView2_9) -> Self
Converts to this type from the input type.
Source§impl Interface for ICoreWebView2
impl Interface for ICoreWebView2
Source§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the
Interface implementation.Source§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
Source§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Attempts to cast the current interface to another interface using
QueryInterface. Read moreSource§fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>
fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>
This casts the given COM interface to [
&dyn Any]. Read moreSource§fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>
fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>
This casts the given COM interface to [
&dyn Any]. It returns a reference to the “outer”
object, e.g. &MyApp_Impl, not the inner &MyApp object. Read moreSource§fn cast_object<T>(&self) -> Result<ComObject<T>, Error>
fn cast_object<T>(&self) -> Result<ComObject<T>, Error>
This casts the given COM interface to [
&dyn Any]. It returns a reference to the “outer”
object, e.g. MyApp_Impl, not the inner MyApp object. Read moreSource§fn downgrade(&self) -> Result<Weak<Self>, Error>
fn downgrade(&self) -> Result<Weak<Self>, Error>
Attempts to create a
Weak reference to this object.Source§unsafe fn query(&self, iid: *const GUID, interface: *mut *mut c_void) -> HRESULT
unsafe fn query(&self, iid: *const GUID, interface: *mut *mut c_void) -> HRESULT
Call
QueryInterface on this interface Read moreSource§fn to_ref(&self) -> InterfaceRef<'_, Self>
fn to_ref(&self) -> InterfaceRef<'_, Self>
Creates an
InterfaceRef for this reference. The InterfaceRef tracks lifetimes statically,
and eliminates the need for dynamic reference count adjustments (AddRef/Release).Source§impl PartialEq for ICoreWebView2
impl PartialEq for ICoreWebView2
Source§fn eq(&self, other: &ICoreWebView2) -> bool
fn eq(&self, other: &ICoreWebView2) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ICoreWebView2
impl StructuralPartialEq for ICoreWebView2
Auto Trait Implementations§
impl Freeze for ICoreWebView2
impl RefUnwindSafe for ICoreWebView2
impl !Send for ICoreWebView2
impl !Sync for ICoreWebView2
impl Unpin for ICoreWebView2
impl UnsafeUnpin for ICoreWebView2
impl UnwindSafe for ICoreWebView2
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