#[repr(u32)]pub enum gvr_controller_battery_level {
GVR_CONTROLLER_BATTERY_LEVEL_UNKNOWN = 0,
GVR_CONTROLLER_BATTERY_LEVEL_CRITICAL_LOW = 1,
GVR_CONTROLLER_BATTERY_LEVEL_LOW = 2,
GVR_CONTROLLER_BATTERY_LEVEL_MEDIUM = 3,
GVR_CONTROLLER_BATTERY_LEVEL_ALMOST_FULL = 4,
GVR_CONTROLLER_BATTERY_LEVEL_FULL = 5,
GVR_CONTROLLER_BATTERY_LEVEL_COUNT = 6,
}Expand description
Controller battery states.
Variants§
GVR_CONTROLLER_BATTERY_LEVEL_UNKNOWN = 0
GVR_CONTROLLER_BATTERY_LEVEL_CRITICAL_LOW = 1
GVR_CONTROLLER_BATTERY_LEVEL_LOW = 2
GVR_CONTROLLER_BATTERY_LEVEL_MEDIUM = 3
GVR_CONTROLLER_BATTERY_LEVEL_ALMOST_FULL = 4
GVR_CONTROLLER_BATTERY_LEVEL_FULL = 5
GVR_CONTROLLER_BATTERY_LEVEL_COUNT = 6
Trait Implementations§
Source§impl Clone for gvr_controller_battery_level
impl Clone for gvr_controller_battery_level
Source§fn clone(&self) -> gvr_controller_battery_level
fn clone(&self) -> gvr_controller_battery_level
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 gvr_controller_battery_level
impl Debug for gvr_controller_battery_level
Source§impl Hash for gvr_controller_battery_level
impl Hash for gvr_controller_battery_level
Source§impl PartialEq for gvr_controller_battery_level
impl PartialEq for gvr_controller_battery_level
Source§fn eq(&self, other: &gvr_controller_battery_level) -> bool
fn eq(&self, other: &gvr_controller_battery_level) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for gvr_controller_battery_level
impl Eq for gvr_controller_battery_level
impl StructuralPartialEq for gvr_controller_battery_level
Auto Trait Implementations§
impl Freeze for gvr_controller_battery_level
impl RefUnwindSafe for gvr_controller_battery_level
impl Send for gvr_controller_battery_level
impl Sync for gvr_controller_battery_level
impl Unpin for gvr_controller_battery_level
impl UnwindSafe for gvr_controller_battery_level
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