Struct MotorRef
pub struct MotorRef<'a> {
pub motor_type: MotorTypeId,
pub send_id: u32,
pub recv_id: u32,
pub name: &'a str,
}Expand description
Borrowed view of a motor’s identity, suitable for passing into codec encode methods without taking ownership of the motor’s mutable state.
Fields§
§motor_type: MotorTypeIdThe motor’s vendor type identifier.
send_id: u32CAN ID this motor accepts commands on.
recv_id: u32CAN ID this motor emits state and replies from.
name: &'a strHuman-readable motor name from the robot config.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for MotorRef<'a>
impl<'a> RefUnwindSafe for MotorRef<'a>
impl<'a> Send for MotorRef<'a>
impl<'a> Sync for MotorRef<'a>
impl<'a> Unpin for MotorRef<'a>
impl<'a> UnsafeUnpin for MotorRef<'a>
impl<'a> UnwindSafe for MotorRef<'a>
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