#[repr(C)]pub struct _cef_scheme_handler_factory_t {
pub base: cef_base_ref_counted_t,
pub create: Option<unsafe extern "C" fn(self_: *mut _cef_scheme_handler_factory_t, browser: *mut _cef_browser_t, frame: *mut _cef_frame_t, scheme_name: *const cef_string_t, request: *mut _cef_request_t) -> *mut _cef_resource_handler_t>,
}Expand description
Structure that creates cef_resource_handler_t instances for handling scheme requests. The functions of this structure will always be called on the IO thread.
NOTE: This struct is allocated client-side.
Fields§
§base: cef_base_ref_counted_tBase structure.
create: Option<unsafe extern "C" fn(self_: *mut _cef_scheme_handler_factory_t, browser: *mut _cef_browser_t, frame: *mut _cef_frame_t, scheme_name: *const cef_string_t, request: *mut _cef_request_t) -> *mut _cef_resource_handler_t>Return a new resource handler instance to handle the request or an NULL reference to allow default handling of the request. |browser| and |frame| will be the browser window and frame respectively that originated the request or NULL if the request did not originate from a browser window (for example, if the request came from cef_urlrequest_t). The |request| object passed to this function cannot be modified.
Trait Implementations§
Source§impl Clone for _cef_scheme_handler_factory_t
impl Clone for _cef_scheme_handler_factory_t
Source§fn clone(&self) -> _cef_scheme_handler_factory_t
fn clone(&self) -> _cef_scheme_handler_factory_t
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for _cef_scheme_handler_factory_t
Auto Trait Implementations§
impl Freeze for _cef_scheme_handler_factory_t
impl RefUnwindSafe for _cef_scheme_handler_factory_t
impl Send for _cef_scheme_handler_factory_t
impl Sync for _cef_scheme_handler_factory_t
impl Unpin for _cef_scheme_handler_factory_t
impl UnwindSafe for _cef_scheme_handler_factory_t
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