ImplRequestHandler

Trait ImplRequestHandler 

Source
pub trait ImplRequestHandler:
    Clone
    + Sized
    + Rc {
Show 13 methods // Required method fn get_raw(&self) -> *mut _cef_request_handler_t; // Provided methods fn on_before_browse( &self, browser: Option<&mut Browser>, frame: Option<&mut Frame>, request: Option<&mut Request>, user_gesture: c_int, is_redirect: c_int, ) -> c_int { ... } fn on_open_urlfrom_tab( &self, browser: Option<&mut Browser>, frame: Option<&mut Frame>, target_url: Option<&CefString>, target_disposition: WindowOpenDisposition, user_gesture: c_int, ) -> c_int { ... } fn resource_request_handler( &self, browser: Option<&mut Browser>, frame: Option<&mut Frame>, request: Option<&mut Request>, is_navigation: c_int, is_download: c_int, request_initiator: Option<&CefString>, disable_default_handling: Option<&mut c_int>, ) -> Option<ResourceRequestHandler> { ... } fn auth_credentials( &self, browser: Option<&mut Browser>, origin_url: Option<&CefString>, is_proxy: c_int, host: Option<&CefString>, port: c_int, realm: Option<&CefString>, scheme: Option<&CefString>, callback: Option<&mut AuthCallback>, ) -> c_int { ... } fn on_certificate_error( &self, browser: Option<&mut Browser>, cert_error: Errorcode, request_url: Option<&CefString>, ssl_info: Option<&mut Sslinfo>, callback: Option<&mut Callback>, ) -> c_int { ... } fn on_select_client_certificate( &self, browser: Option<&mut Browser>, is_proxy: c_int, host: Option<&CefString>, port: c_int, certificates: Option<&[Option<X509Certificate>]>, callback: Option<&mut SelectClientCertificateCallback>, ) -> c_int { ... } fn on_render_view_ready(&self, browser: Option<&mut Browser>) { ... } fn on_render_process_unresponsive( &self, browser: Option<&mut Browser>, callback: Option<&mut UnresponsiveProcessCallback>, ) -> c_int { ... } fn on_render_process_responsive(&self, browser: Option<&mut Browser>) { ... } fn on_render_process_terminated( &self, browser: Option<&mut Browser>, status: TerminationStatus, error_code: c_int, error_string: Option<&CefString>, ) { ... } fn on_document_available_in_main_frame(&self, browser: Option<&mut Browser>) { ... } fn init_methods(object: &mut _cef_request_handler_t) { ... }
}

Required Methods§

Provided Methods§

Source

fn on_before_browse( &self, browser: Option<&mut Browser>, frame: Option<&mut Frame>, request: Option<&mut Request>, user_gesture: c_int, is_redirect: c_int, ) -> c_int

See _cef_request_handler_t::on_before_browse for more documentation.

Source

fn on_open_urlfrom_tab( &self, browser: Option<&mut Browser>, frame: Option<&mut Frame>, target_url: Option<&CefString>, target_disposition: WindowOpenDisposition, user_gesture: c_int, ) -> c_int

See _cef_request_handler_t::on_open_urlfrom_tab for more documentation.

Source

fn resource_request_handler( &self, browser: Option<&mut Browser>, frame: Option<&mut Frame>, request: Option<&mut Request>, is_navigation: c_int, is_download: c_int, request_initiator: Option<&CefString>, disable_default_handling: Option<&mut c_int>, ) -> Option<ResourceRequestHandler>

Source

fn auth_credentials( &self, browser: Option<&mut Browser>, origin_url: Option<&CefString>, is_proxy: c_int, host: Option<&CefString>, port: c_int, realm: Option<&CefString>, scheme: Option<&CefString>, callback: Option<&mut AuthCallback>, ) -> c_int

Source

fn on_certificate_error( &self, browser: Option<&mut Browser>, cert_error: Errorcode, request_url: Option<&CefString>, ssl_info: Option<&mut Sslinfo>, callback: Option<&mut Callback>, ) -> c_int

Source

fn on_select_client_certificate( &self, browser: Option<&mut Browser>, is_proxy: c_int, host: Option<&CefString>, port: c_int, certificates: Option<&[Option<X509Certificate>]>, callback: Option<&mut SelectClientCertificateCallback>, ) -> c_int

Source

fn on_render_view_ready(&self, browser: Option<&mut Browser>)

Source

fn on_render_process_unresponsive( &self, browser: Option<&mut Browser>, callback: Option<&mut UnresponsiveProcessCallback>, ) -> c_int

Source

fn on_render_process_responsive(&self, browser: Option<&mut Browser>)

Source

fn on_render_process_terminated( &self, browser: Option<&mut Browser>, status: TerminationStatus, error_code: c_int, error_string: Option<&CefString>, )

Source

fn on_document_available_in_main_frame(&self, browser: Option<&mut Browser>)

Source

fn init_methods(object: &mut _cef_request_handler_t)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§