pub enum Motor {
Servo,
Stepper(Stepper),
Induction(Induction),
}Expand description
motor.kind: “servo” (the default, the permanent-magnet servo motor of this module), “stepper” (stepper::Stepper
behind an open-loop step and direction drive) or “induction” (induction::Induction on a frequency converter).
Variants§
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Motor
impl<'de> Deserialize<'de> for Motor
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
impl StructuralPartialEq for Motor
Auto Trait Implementations§
impl Freeze for Motor
impl RefUnwindSafe for Motor
impl Send for Motor
impl Sync for Motor
impl Unpin for Motor
impl UnsafeUnpin for Motor
impl UnwindSafe for Motor
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