pub struct PermissionHandler(/* private fields */);Expand description
See _cef_permission_handler_t for more documentation.
Implementations§
Source§impl PermissionHandler
impl PermissionHandler
pub fn new<T>(interface: T) -> Selfwhere
T: WrapPermissionHandler,
Trait Implementations§
Source§impl Clone for PermissionHandler
impl Clone for PermissionHandler
Source§fn clone(&self) -> PermissionHandler
fn clone(&self) -> PermissionHandler
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 ConvertParam<*mut _cef_permission_handler_t> for &PermissionHandler
impl ConvertParam<*mut _cef_permission_handler_t> for &PermissionHandler
fn into_raw(self) -> *mut _cef_permission_handler_t
Source§impl ConvertParam<*mut _cef_permission_handler_t> for &mut PermissionHandler
impl ConvertParam<*mut _cef_permission_handler_t> for &mut PermissionHandler
fn into_raw(self) -> *mut _cef_permission_handler_t
Source§impl ConvertReturnValue<PermissionHandler> for *mut _cef_permission_handler_t
impl ConvertReturnValue<PermissionHandler> for *mut _cef_permission_handler_t
fn wrap_result(self) -> PermissionHandler
Source§impl From<PermissionHandler> for *mut _cef_permission_handler_t
impl From<PermissionHandler> for *mut _cef_permission_handler_t
Source§fn from(value: PermissionHandler) -> Self
fn from(value: PermissionHandler) -> Self
Converts to this type from the input type.
Source§impl ImplPermissionHandler for PermissionHandler
impl ImplPermissionHandler for PermissionHandler
Source§fn on_request_media_access_permission(
&self,
browser: Option<&mut Browser>,
frame: Option<&mut Frame>,
requesting_origin: Option<&CefString>,
requested_permissions: u32,
callback: Option<&mut MediaAccessCallback>,
) -> c_int
fn on_request_media_access_permission( &self, browser: Option<&mut Browser>, frame: Option<&mut Frame>, requesting_origin: Option<&CefString>, requested_permissions: u32, callback: Option<&mut MediaAccessCallback>, ) -> c_int
See
_cef_permission_handler_t::on_request_media_access_permission for more documentation.Source§fn on_show_permission_prompt(
&self,
browser: Option<&mut Browser>,
prompt_id: u64,
requesting_origin: Option<&CefString>,
requested_permissions: u32,
callback: Option<&mut PermissionPromptCallback>,
) -> c_int
fn on_show_permission_prompt( &self, browser: Option<&mut Browser>, prompt_id: u64, requesting_origin: Option<&CefString>, requested_permissions: u32, callback: Option<&mut PermissionPromptCallback>, ) -> c_int
See
_cef_permission_handler_t::on_show_permission_prompt for more documentation.Source§fn on_dismiss_permission_prompt(
&self,
browser: Option<&mut Browser>,
prompt_id: u64,
result: PermissionRequestResult,
)
fn on_dismiss_permission_prompt( &self, browser: Option<&mut Browser>, prompt_id: u64, result: PermissionRequestResult, )
See
_cef_permission_handler_t::on_dismiss_permission_prompt for more documentation.fn get_raw(&self) -> *mut _cef_permission_handler_t
fn init_methods(object: &mut _cef_permission_handler_t)
Source§impl Rc for PermissionHandler
impl Rc for PermissionHandler
Source§fn as_base(&self) -> &_cef_base_ref_counted_t
fn as_base(&self) -> &_cef_base_ref_counted_t
Get the reference of cef_base_ref_counted_t.
Source§unsafe fn release(&self) -> bool
unsafe fn release(&self) -> bool
Decrease reference count by 1 and release the value if the count meets 0.
Reuturn
True if it is released. Read moreSource§fn has_one_ref(&self) -> bool
fn has_one_ref(&self) -> bool
True if the reference count is exactly 1.Source§fn has_at_least_one_ref(&self) -> bool
fn has_at_least_one_ref(&self) -> bool
True if the reference count is larger than 0.Auto Trait Implementations§
impl Freeze for PermissionHandler
impl RefUnwindSafe for PermissionHandler
impl Send for PermissionHandler
impl Sync for PermissionHandler
impl Unpin for PermissionHandler
impl UnwindSafe for PermissionHandler
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