#[repr(u32)]pub enum PermissionKind {
UnknownPermission = 0,
Microphone = 1,
Camera = 2,
Geolocation = 3,
Notifications = 4,
OtherSensors = 5,
ClipboardRead = 6,
}
Expand description
Indicates the type of a permission request.
Variants§
UnknownPermission = 0
Indicates an unknown permission.
Microphone = 1
Indicates permission to capture audio.
Camera = 2
Indicates permission to capture video.
Geolocation = 3
Indicates permission to access geolocation.
Notifications = 4
Indicates permission to send web notifications. This permission request is currently auto-rejected and no event is run for it.
OtherSensors = 5
Indicates permission to access generic sensor. Generic Sensor covering ambient-light-sensor, accelerometer, gyroscope, and magnetometer.
ClipboardRead = 6
Indicates permission to read the system clipboard without a user gesture.
Trait Implementations§
Source§impl Clone for PermissionKind
impl Clone for PermissionKind
Source§fn clone(&self) -> PermissionKind
fn clone(&self) -> PermissionKind
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 PermissionKind
impl Debug for PermissionKind
Source§impl PartialEq for PermissionKind
impl PartialEq for PermissionKind
impl Copy for PermissionKind
impl Eq for PermissionKind
impl StructuralPartialEq for PermissionKind
Auto Trait Implementations§
impl Freeze for PermissionKind
impl RefUnwindSafe for PermissionKind
impl Send for PermissionKind
impl Sync for PermissionKind
impl Unpin for PermissionKind
impl UnwindSafe for PermissionKind
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