pub enum PermissionResponse {
Allow,
Deny,
Default,
}Expand description
Response for permission requests.
Variants§
Allow
Grant the permission.
§Platform-specific
- Android: Not supported for runtime permissions; the normal Android permission flow is used instead.
Deny
Deny the permission.
Default
Use the platform or browser default behavior.
§Platform-specific
- Windows / macOS / Android: The default behavior is to continue the platform or browser permission flow.
- Linux: The default behavior is
Self::Deny
Trait Implementations§
Source§impl Clone for PermissionResponse
impl Clone for PermissionResponse
Source§fn clone(&self) -> PermissionResponse
fn clone(&self) -> PermissionResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PermissionResponse
Source§impl Debug for PermissionResponse
impl Debug for PermissionResponse
Source§impl Default for PermissionResponse
impl Default for PermissionResponse
Source§fn default() -> PermissionResponse
fn default() -> PermissionResponse
Returns the “default value” for a type. Read more
Source§impl Display for PermissionResponse
impl Display for PermissionResponse
impl Eq for PermissionResponse
Source§impl Hash for PermissionResponse
impl Hash for PermissionResponse
Source§impl PartialEq for PermissionResponse
impl PartialEq for PermissionResponse
impl StructuralPartialEq for PermissionResponse
Auto Trait Implementations§
impl Freeze for PermissionResponse
impl RefUnwindSafe for PermissionResponse
impl Send for PermissionResponse
impl Sync for PermissionResponse
impl Unpin for PermissionResponse
impl UnsafeUnpin for PermissionResponse
impl UnwindSafe for PermissionResponse
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.