Trait webview2_sys::ICoreWebView2ProcessFailedEventArgs2[][src]

pub trait ICoreWebView2ProcessFailedEventArgs2: ICoreWebView2ProcessFailedEventArgs {
    unsafe fn get_reason(&self, reason: *mut ProcessFailedReason) -> HRESULT;
unsafe fn get_exit_code(&self, exit_code: *mut i32) -> HRESULT;
unsafe fn get_process_description(
        &self,
        process_description: *mut LPWSTR
    ) -> HRESULT;
unsafe fn get_frame_infos_for_failed_process(
        &self,
        frames: *mut *mut *mut ICoreWebView2FrameInfoCollectionVTable
    ) -> HRESULT; }

A continuation of ICoreWebView2ProcessFailedEventArgs interface.

Required methods

unsafe fn get_reason(&self, reason: *mut ProcessFailedReason) -> HRESULT[src]

The reason for the process failure. The reason is always COREWEBVIEW2_PROCESS_FAILED_REASON_UNEXPECTED when ProcessFailedKind is COREWEBVIEW2_PROCESS_FAILED_KIND_BROWSER_PROCESS_EXITED, and COREWEBVIEW2_PROCESS_FAILED_REASON_UNRESPONSIVE when ProcessFailedKind is COREWEBVIEW2_PROCESS_FAILED_KIND_RENDER_PROCESS_UNRESPONSIVE. For other process failure kinds, the reason may be any of the reason values.

unsafe fn get_exit_code(&self, exit_code: *mut i32) -> HRESULT[src]

The exit code of the failing process, for telemetry purposes. The exit code is always 1 when ProcessFailedKind is COREWEBVIEW2_PROCESS_FAILED_KIND_BROWSER_PROCESS_EXITED, and STILL_ACTIVE (259) when ProcessFailedKind is COREWEBVIEW2_PROCESS_FAILED_KIND_RENDER_PROCESS_UNRESPONSIVE.

unsafe fn get_process_description(
    &self,
    process_description: *mut LPWSTR
) -> HRESULT
[src]

Description of the process assigned by the WebView2 Runtime. This is a technical English term appropriate for logging or development purposes, and not localized for the end user. It applies to utility processes (for example, “Audio Service”, “Video Capture”) and plugin processes (for example, “Flash”). The returned processDescription is empty if the WebView2 Runtime did not assign a description to the process.

unsafe fn get_frame_infos_for_failed_process(
    &self,
    frames: *mut *mut *mut ICoreWebView2FrameInfoCollectionVTable
) -> HRESULT
[src]

The collection of FrameInfos for frames in the CoreWebView2 that were being rendered by the failed process. The content in these frames is replaced with an error page. This is only available when ProcessFailedKind is COREWEBVIEW2_PROCESS_FAILED_KIND_FRAME_RENDER_PROCESS_EXITED; frames is null for all other process failure kinds, including the case in which the failed process was the renderer for the main frame and subframes within it, for which the failure kind is COREWEBVIEW2_PROCESS_FAILED_KIND_RENDER_PROCESS_EXITED.

Loading content...

Trait Implementations

impl ComInterface for dyn ICoreWebView2ProcessFailedEventArgs2[src]

type VTable = ICoreWebView2ProcessFailedEventArgs2VTable

A COM compatible V-Table

type Super = dyn ICoreWebView2ProcessFailedEventArgs

The interface that this interface inherits from

impl<C: ICoreWebView2ProcessFailedEventArgs2> ProductionComInterface<C> for dyn ICoreWebView2ProcessFailedEventArgs2[src]

Implementations on Foreign Types

impl<T: ICoreWebView2ProcessFailedEventArgs2 + ComInterface + ?Sized> ICoreWebView2ProcessFailedEventArgs2 for ComRc<T>[src]

impl<T: ICoreWebView2ProcessFailedEventArgs2 + ComInterface + ?Sized> ICoreWebView2ProcessFailedEventArgs2 for ComPtr<T>[src]

Loading content...

Implementors

Loading content...