#[non_exhaustive]pub enum MotorTypeId {
Damiao(u16),
Robostride(u16),
}Expand description
Vendor-tagged motor type identifier.
Each variant carries an opaque u16 discriminant that the owning vendor’s
codec interprets internally — no two vendors need to coordinate their
discriminant spaces.
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.
Damiao(u16)
Damiao motor SKU (DM4310, DM4340, …). The u16 is the SKU discriminant
defined in can-motor-damiao-codec.
Robostride(u16)
Robostride motor SKU. Reserved for a future vendor codec crate.
Trait Implementations§
Source§impl Clone for MotorTypeId
impl Clone for MotorTypeId
Source§fn clone(&self) -> MotorTypeId
fn clone(&self) -> MotorTypeId
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 moreSource§impl Debug for MotorTypeId
impl Debug for MotorTypeId
Source§impl Hash for MotorTypeId
impl Hash for MotorTypeId
Source§impl PartialEq for MotorTypeId
impl PartialEq for MotorTypeId
Source§fn eq(&self, other: &MotorTypeId) -> bool
fn eq(&self, other: &MotorTypeId) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for MotorTypeId
impl Eq for MotorTypeId
impl StructuralPartialEq for MotorTypeId
Auto Trait Implementations§
impl Freeze for MotorTypeId
impl RefUnwindSafe for MotorTypeId
impl Send for MotorTypeId
impl Sync for MotorTypeId
impl Unpin for MotorTypeId
impl UnsafeUnpin for MotorTypeId
impl UnwindSafe for MotorTypeId
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