#[repr(u8)]pub enum PowerLevel {
Stop = 0,
Gentle = 25,
Moderate = 35,
Medium = 45,
Intense = 55,
Powerful = 65,
Maximum = 75,
}Expand description
Predefined power levels for the vibration motor.
Variants§
Stop = 0
Motor stopped
Gentle = 25
Gentle vibration
Moderate = 35
Moderate vibration
Medium = 45
Medium vibration
Intense = 55
Intense vibration
Powerful = 65
Powerful vibration
Maximum = 75
Maximum vibration
Implementations§
Trait Implementations§
Source§impl Clone for PowerLevel
impl Clone for PowerLevel
Source§fn clone(&self) -> PowerLevel
fn clone(&self) -> PowerLevel
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 PowerLevel
impl Debug for PowerLevel
Source§impl Default for PowerLevel
impl Default for PowerLevel
Source§fn default() -> PowerLevel
fn default() -> PowerLevel
Returns the “default value” for a type. Read more
Source§impl Format for PowerLevel
impl Format for PowerLevel
Source§impl From<PowerLevel> for u8
impl From<PowerLevel> for u8
Source§fn from(level: PowerLevel) -> Self
fn from(level: PowerLevel) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PowerLevel
impl PartialEq for PowerLevel
impl Copy for PowerLevel
impl Eq for PowerLevel
impl StructuralPartialEq for PowerLevel
Auto Trait Implementations§
impl Freeze for PowerLevel
impl RefUnwindSafe for PowerLevel
impl Send for PowerLevel
impl Sync for PowerLevel
impl Unpin for PowerLevel
impl UnwindSafe for PowerLevel
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