#[non_exhaustive]pub enum PermissionKind {
Show 13 variants
Unknown,
Microphone,
Camera,
Geolocation,
Notifications,
OtherSensors,
ClipboardRead,
MultipleAutomaticDownloads,
FileReadWrite,
Autoplay,
LocalFonts,
MidiSystemExclusiveMessages,
WindowManagement,
}Expand description
The kind of capability a page is requesting in a
PermissionRequestedArgs.
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.
Unknown
A permission kind not represented by the other variants.
Microphone
Access to the microphone.
Camera
Access to the camera.
Geolocation
Access to the device location.
Notifications
Permission to show notifications.
OtherSensors
Access to device sensors other than location.
ClipboardRead
Permission to read the clipboard.
MultipleAutomaticDownloads
Permission to start multiple downloads automatically.
FileReadWrite
Access to files on the device.
Autoplay
Permission to play media without user interaction.
LocalFonts
Access to locally installed fonts.
MidiSystemExclusiveMessages
Access to system-exclusive MIDI messages.
WindowManagement
Permission to inspect and place windows on screens.
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 (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 PermissionKind
Source§impl Debug for PermissionKind
impl Debug for PermissionKind
impl Eq for PermissionKind
Source§impl PartialEq for PermissionKind
impl PartialEq 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 UnsafeUnpin 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