pub trait ICoreWebView2WebResourceResponseViewGetContentCompletedHandler: IUnknown {
// Required method
unsafe fn invoke(
&self,
error_code: HRESULT,
content: *mut *mut IStreamVTable,
) -> HRESULT;
}
Expand description
Receives the result of the
ICoreWebView2WebResourceResponseView::GetContent
method.
Required Methods§
Sourceunsafe fn invoke(
&self,
error_code: HRESULT,
content: *mut *mut IStreamVTable,
) -> HRESULT
unsafe fn invoke( &self, error_code: HRESULT, content: *mut *mut IStreamVTable, ) -> HRESULT
Provides the completion status and result of the corresponding
asynchronous method call. A failure errorCode
will be passed if the
content failed to load. E_ABORT
means the response loading was blocked
(e.g., by CORS policy); ERROR_CANCELLED
means the response loading was
cancelled. ERROR_NO_DATA
means the response has no content data,
content
is null
in this case. Note content (if any) is ignored for
redirects, 204 No Content, 205 Reset Content, and HEAD-request responses.
Trait Implementations§
Source§impl ComInterface for dyn ICoreWebView2WebResourceResponseViewGetContentCompletedHandler
impl ComInterface for dyn ICoreWebView2WebResourceResponseViewGetContentCompletedHandler
Source§const IID: IID = IID_ICORE_WEB_VIEW2_WEB_RESOURCE_RESPONSE_VIEW_GET_CONTENT_COMPLETED_HANDLER
const IID: IID = IID_ICORE_WEB_VIEW2_WEB_RESOURCE_RESPONSE_VIEW_GET_CONTENT_COMPLETED_HANDLER
The associated id for this interface
Source§type VTable = ICoreWebView2WebResourceResponseViewGetContentCompletedHandlerVTable
type VTable = ICoreWebView2WebResourceResponseViewGetContentCompletedHandlerVTable
A COM compatible V-Table
Source§fn is_iid_in_inheritance_chain(riid: &GUID) -> bool
fn is_iid_in_inheritance_chain(riid: &GUID) -> bool
Check whether a given IID is in the inheritance hierarchy of this interface