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§
fn get_raw(&self) -> *mut _cef_request_handler_t
Provided Methods§
Sourcefn 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_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.
Sourcefn 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 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.
Sourcefn 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 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>
See _cef_request_handler_t::get_resource_request_handler
for more documentation.
Sourcefn 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 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
See _cef_request_handler_t::get_auth_credentials
for more documentation.
Sourcefn 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_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
See _cef_request_handler_t::on_certificate_error
for more documentation.
Sourcefn 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_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
See _cef_request_handler_t::on_select_client_certificate
for more documentation.
Sourcefn on_render_view_ready(&self, browser: Option<&mut Browser>)
fn on_render_view_ready(&self, browser: Option<&mut Browser>)
See _cef_request_handler_t::on_render_view_ready
for more documentation.
Sourcefn on_render_process_unresponsive(
&self,
browser: Option<&mut Browser>,
callback: Option<&mut UnresponsiveProcessCallback>,
) -> c_int
fn on_render_process_unresponsive( &self, browser: Option<&mut Browser>, callback: Option<&mut UnresponsiveProcessCallback>, ) -> c_int
See _cef_request_handler_t::on_render_process_unresponsive
for more documentation.
Sourcefn on_render_process_responsive(&self, browser: Option<&mut Browser>)
fn on_render_process_responsive(&self, browser: Option<&mut Browser>)
See _cef_request_handler_t::on_render_process_responsive
for more documentation.
Sourcefn on_render_process_terminated(
&self,
browser: Option<&mut Browser>,
status: TerminationStatus,
error_code: c_int,
error_string: Option<&CefString>,
)
fn on_render_process_terminated( &self, browser: Option<&mut Browser>, status: TerminationStatus, error_code: c_int, error_string: Option<&CefString>, )
See _cef_request_handler_t::on_render_process_terminated
for more documentation.
Sourcefn on_document_available_in_main_frame(&self, browser: Option<&mut Browser>)
fn on_document_available_in_main_frame(&self, browser: Option<&mut Browser>)
See _cef_request_handler_t::on_document_available_in_main_frame
for more documentation.
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.