pub struct MotorMapping {
pub id: String,
pub setpoint: Signal,
pub angle: Signal,
pub speed: Option<Signal>,
pub torque: Signal,
pub torque_setpoint: Option<Signal>,
}Fields§
§id: String§setpoint: Signal§angle: Signal§speed: Option<Signal>Without it, the speed is the slope of the angle.
torque: Signal§torque_setpoint: Option<Signal>Trait Implementations§
Source§impl Clone for MotorMapping
impl Clone for MotorMapping
Source§fn clone(&self) -> MotorMapping
fn clone(&self) -> MotorMapping
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 MotorMapping
impl Debug for MotorMapping
Source§impl PartialEq for MotorMapping
impl PartialEq for MotorMapping
Source§fn eq(&self, other: &MotorMapping) -> bool
fn eq(&self, other: &MotorMapping) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MotorMapping
Auto Trait Implementations§
impl Freeze for MotorMapping
impl RefUnwindSafe for MotorMapping
impl Send for MotorMapping
impl Sync for MotorMapping
impl Unpin for MotorMapping
impl UnsafeUnpin for MotorMapping
impl UnwindSafe for MotorMapping
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