pub enum DeviceTier {
Display,
Sensor,
Actuator,
Rich,
}Expand description
The capability ladder for small and wearable surfaces.
The order is meaningful: a higher tier can satisfy requirements for any lower tier. The variants are not concrete device kinds.
Variants§
Display
A display-only surface can show a reduced glance or pane.
Sensor
A sensor surface contributes live stream fields but does not act back.
Actuator
An actuator surface can emit haptics, HUD output, face output, or sound.
Rich
A rich surface combines high-rate display with pose or equivalent stream data.
Implementations§
Source§impl DeviceTier
impl DeviceTier
Sourcepub const ALL: [DeviceTier; 4]
pub const ALL: [DeviceTier; 4]
Every tier in ascending capability order.
Sourcepub fn from_symbol(symbol: &Symbol) -> Option<Self>
pub fn from_symbol(symbol: &Symbol) -> Option<Self>
Parses an unqualified tier symbol.
Sourcepub fn supports(self, required: DeviceTier) -> bool
pub fn supports(self, required: DeviceTier) -> bool
Returns true when this tier can satisfy a requirement for required.
Trait Implementations§
Source§impl Clone for DeviceTier
impl Clone for DeviceTier
Source§fn clone(&self) -> DeviceTier
fn clone(&self) -> DeviceTier
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 DeviceTier
Source§impl Debug for DeviceTier
impl Debug for DeviceTier
impl Eq for DeviceTier
Source§impl Hash for DeviceTier
impl Hash for DeviceTier
Source§impl Ord for DeviceTier
impl Ord for DeviceTier
Source§fn cmp(&self, other: &DeviceTier) -> Ordering
fn cmp(&self, other: &DeviceTier) -> Ordering
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
Source§impl PartialEq for DeviceTier
impl PartialEq for DeviceTier
Source§impl PartialOrd for DeviceTier
impl PartialOrd for DeviceTier
impl StructuralPartialEq for DeviceTier
Auto Trait Implementations§
impl Freeze for DeviceTier
impl RefUnwindSafe for DeviceTier
impl Send for DeviceTier
impl Sync for DeviceTier
impl Unpin for DeviceTier
impl UnsafeUnpin for DeviceTier
impl UnwindSafe for DeviceTier
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