pub struct Motor {
pub id: String,
pub constraint: String,
pub from: f64,
pub to: f64,
pub drive: Drive,
}Expand description
A mate driven over time. Its kind (distance or angle) is the constraint’s.
Fields§
§id: String§constraint: StringThe distance or angle constraint it drives.
from: f64Seconds: the motor runs inside [from, to] and holds its last value after.
to: f64§drive: DriveImplementations§
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