pub struct MotorPosition {
pub position: u16,
pub drive_mode: u8,
pub hold_position: bool,
pub position_reached: bool,
}
Fields§
§position: u16
§drive_mode: u8
§hold_position: bool
§position_reached: bool
Trait Implementations§
source§impl Clone for MotorPosition
impl Clone for MotorPosition
source§fn clone(&self) -> MotorPosition
fn clone(&self) -> MotorPosition
Returns a copy of the value. Read more
1.0.0 · 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 MotorPosition
impl Debug for MotorPosition
source§impl Default for MotorPosition
impl Default for MotorPosition
source§fn default() -> MotorPosition
fn default() -> MotorPosition
Returns the “default value” for a type. Read more
source§impl FromByteSlice for MotorPosition
impl FromByteSlice for MotorPosition
source§fn bytes_expected() -> usize
fn bytes_expected() -> usize
Returns how many bytes are expected to deserialize a instance of the implementing type. Currently this method is only used for strings.
source§fn from_le_byte_slice(bytes: &[u8]) -> MotorPosition
fn from_le_byte_slice(bytes: &[u8]) -> MotorPosition
Deserialize the implementing type from a byte slice.
source§impl Hash for MotorPosition
impl Hash for MotorPosition
source§impl PartialEq for MotorPosition
impl PartialEq for MotorPosition
source§fn eq(&self, other: &MotorPosition) -> bool
fn eq(&self, other: &MotorPosition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for MotorPosition
impl Eq for MotorPosition
impl StructuralPartialEq for MotorPosition
Auto Trait Implementations§
impl RefUnwindSafe for MotorPosition
impl Send for MotorPosition
impl Sync for MotorPosition
impl Unpin for MotorPosition
impl UnwindSafe for MotorPosition
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