pub enum DeviceCapability {
Pose,
Camera,
Health,
Location,
Mic,
VendorReport,
}Expand description
Capability helpers for device-local sensors and actuators.
Variants§
Pose
Pose or spatial tracking samples.
Camera
Camera frames or still captures.
Health
Health or biometric samples.
Location
Location samples.
Mic
Microphone input samples.
VendorReport
Vendor diagnostic reports.
Implementations§
Source§impl DeviceCapability
impl DeviceCapability
Sourcepub fn capability_name(self) -> CapabilityName
pub fn capability_name(self) -> CapabilityName
Returns the kernel capability name.
Sourcepub fn grant_symbol(self) -> Symbol
pub fn grant_symbol(self) -> Symbol
Returns the visible grant symbol used by consent receipts.
Trait Implementations§
Source§impl Clone for DeviceCapability
impl Clone for DeviceCapability
Source§fn clone(&self) -> DeviceCapability
fn clone(&self) -> DeviceCapability
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 DeviceCapability
Source§impl Debug for DeviceCapability
impl Debug for DeviceCapability
impl Eq for DeviceCapability
Source§impl PartialEq for DeviceCapability
impl PartialEq for DeviceCapability
impl StructuralPartialEq for DeviceCapability
Auto Trait Implementations§
impl Freeze for DeviceCapability
impl RefUnwindSafe for DeviceCapability
impl Send for DeviceCapability
impl Sync for DeviceCapability
impl Unpin for DeviceCapability
impl UnsafeUnpin for DeviceCapability
impl UnwindSafe for DeviceCapability
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