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
sourceimpl Clone for MotorPosition
impl Clone for MotorPosition
sourcefn clone(&self) -> MotorPosition
fn clone(&self) -> MotorPosition
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for MotorPosition
impl Debug for MotorPosition
sourceimpl Default for MotorPosition
impl Default for MotorPosition
sourcefn default() -> MotorPosition
fn default() -> MotorPosition
Returns the “default value” for a type. Read more
sourceimpl FromByteSlice for MotorPosition
impl FromByteSlice for MotorPosition
sourcefn 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.
sourcefn from_le_bytes(bytes: &[u8]) -> MotorPosition
fn from_le_bytes(bytes: &[u8]) -> MotorPosition
Deserialize the implementing type from a byte slice.
sourceimpl Hash for MotorPosition
impl Hash for MotorPosition
sourceimpl PartialEq<MotorPosition> for MotorPosition
impl PartialEq<MotorPosition> for MotorPosition
sourcefn eq(&self, other: &MotorPosition) -> bool
fn eq(&self, other: &MotorPosition) -> bool
impl Copy for MotorPosition
impl Eq for MotorPosition
impl StructuralEq 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more