#[repr(C)]pub struct _cef_scheme_registrar_t {
pub base: cef_base_scoped_t,
pub add_custom_scheme: Option<unsafe extern "C" fn(self_: *mut _cef_scheme_registrar_t, scheme_name: *const cef_string_t, options: c_int) -> c_int>,
}Expand description
Structure that manages custom scheme registrations.
NOTE: This struct is allocated DLL-side.
Fields§
§base: cef_base_scoped_tBase structure.
add_custom_scheme: Option<unsafe extern "C" fn(self_: *mut _cef_scheme_registrar_t, scheme_name: *const cef_string_t, options: c_int) -> c_int>Register a custom scheme. This function should not be called for the built-in HTTP, HTTPS, FILE, FTP, ABOUT and DATA schemes.
See cef_scheme_options_t for possible values for |options|.
This function may be called on any thread. It should only be called once per unique |scheme_name| value. If |scheme_name| is already registered or if an error occurs this function will return false (0).
Trait Implementations§
Source§impl Clone for _cef_scheme_registrar_t
impl Clone for _cef_scheme_registrar_t
Source§fn clone(&self) -> _cef_scheme_registrar_t
fn clone(&self) -> _cef_scheme_registrar_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 moreSource§impl Debug for _cef_scheme_registrar_t
impl Debug for _cef_scheme_registrar_t
impl Copy for _cef_scheme_registrar_t
Auto Trait Implementations§
impl Freeze for _cef_scheme_registrar_t
impl RefUnwindSafe for _cef_scheme_registrar_t
impl Send for _cef_scheme_registrar_t
impl Sync for _cef_scheme_registrar_t
impl Unpin for _cef_scheme_registrar_t
impl UnwindSafe for _cef_scheme_registrar_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