#[non_exhaustive]pub enum DeviceStatus {
Motor {
velocity: f64,
reversed: bool,
power_draw: f64,
torque_output: f64,
flags: i32,
position: f64,
target_position: f64,
voltage: f64,
gearset: MotorGearset,
brake_mode: MotorBrakeMode,
},
}
Expand description
The current state of a V5 peripheral.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Motor
Trait Implementations§
Source§impl Clone for DeviceStatus
impl Clone for DeviceStatus
Source§fn clone(&self) -> DeviceStatus
fn clone(&self) -> DeviceStatus
Returns a copy 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 DeviceStatus
impl Debug for DeviceStatus
Source§impl<'de> Deserialize<'de> for DeviceStatus
impl<'de> Deserialize<'de> for DeviceStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DeviceStatus
impl PartialEq for DeviceStatus
Source§impl PartialOrd for DeviceStatus
impl PartialOrd for DeviceStatus
Source§impl Serialize for DeviceStatus
impl Serialize for DeviceStatus
impl Copy for DeviceStatus
impl StructuralPartialEq for DeviceStatus
Auto Trait Implementations§
impl Freeze for DeviceStatus
impl RefUnwindSafe for DeviceStatus
impl Send for DeviceStatus
impl Sync for DeviceStatus
impl Unpin for DeviceStatus
impl UnwindSafe for DeviceStatus
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