#[non_exhaustive]#[repr(u32)]pub enum cef_permission_request_result_t {
CEF_PERMISSION_RESULT_ACCEPT = 0,
CEF_PERMISSION_RESULT_DENY = 1,
CEF_PERMISSION_RESULT_DISMISS = 2,
CEF_PERMISSION_RESULT_IGNORE = 3,
CEF_PERMISSION_RESULT_NUM_VALUES = 4,
}Expand description
Permission request results.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CEF_PERMISSION_RESULT_ACCEPT = 0
Accept the permission request as an explicit user action.
CEF_PERMISSION_RESULT_DENY = 1
Deny the permission request as an explicit user action.
CEF_PERMISSION_RESULT_DISMISS = 2
Dismiss the permission request as an explicit user action.
CEF_PERMISSION_RESULT_IGNORE = 3
Ignore the permission request. If the prompt remains unhandled (e.g. OnShowPermissionPrompt returns false and there is no default permissions UI) then any related promises may remain unresolved.
CEF_PERMISSION_RESULT_NUM_VALUES = 4
Ignore the permission request. If the prompt remains unhandled (e.g. OnShowPermissionPrompt returns false and there is no default permissions UI) then any related promises may remain unresolved.
Trait Implementations§
Source§impl Clone for cef_permission_request_result_t
impl Clone for cef_permission_request_result_t
Source§fn clone(&self) -> cef_permission_request_result_t
fn clone(&self) -> cef_permission_request_result_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 PartialEq for cef_permission_request_result_t
impl PartialEq for cef_permission_request_result_t
Source§fn eq(&self, other: &cef_permission_request_result_t) -> bool
fn eq(&self, other: &cef_permission_request_result_t) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for cef_permission_request_result_t
impl Eq for cef_permission_request_result_t
impl StructuralPartialEq for cef_permission_request_result_t
Auto Trait Implementations§
impl Freeze for cef_permission_request_result_t
impl RefUnwindSafe for cef_permission_request_result_t
impl Send for cef_permission_request_result_t
impl Sync for cef_permission_request_result_t
impl Unpin for cef_permission_request_result_t
impl UnwindSafe for cef_permission_request_result_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