pub enum Demand {
Camera,
Microphone,
Watch,
Telephony,
Bluetooth,
Nfc,
Wifi,
Location,
}Expand description
Hardware an application cannot run without.
Every other feature stays optional, so the application reaches devices that lack the hardware and asks the framework at run time.
Variants§
Camera
A camera.
Microphone
A microphone.
Watch
A watch.
Telephony
Telephony.
Bluetooth
Bluetooth.
Nfc
Near-field communication.
Wifi
Wi-Fi.
Location
Location hardware.
Implementations§
Trait Implementations§
impl Copy for Demand
impl Eq for Demand
Source§impl Ord for Demand
impl Ord for Demand
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Demand
impl PartialOrd for Demand
impl StructuralPartialEq for Demand
Auto Trait Implementations§
impl Freeze for Demand
impl RefUnwindSafe for Demand
impl Send for Demand
impl Sync for Demand
impl Unpin for Demand
impl UnsafeUnpin for Demand
impl UnwindSafe for Demand
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