Enum Event
#[non_exhaustive]pub enum Event {
State {
motor_id: u32,
q: f64,
dq: f64,
tau: f64,
t_mos: i16,
t_rotor: i16,
},
ParamReply {
motor_id: u32,
rid: u16,
value: ParamValue,
},
Fault {
motor_id: u32,
code: u16,
},
}Expand description
A decoded inbound message from a motor.
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.
State
Motor state response (the per-tick mechanical state).
Fields
ParamReply
Reply to a parameter read or write (vendor-specific sub-protocol).
Fields
§
value: ParamValueDecoded value.
Fault
A motor fault notification.
Trait Implementations§
impl Copy for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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