Struct MID0015rev2

Source
pub struct MID0015rev2 {
Show 13 fields pub parameter_set_id: u16, pub parameter_set_name: String, pub date_of_last_change: String, pub rotation_direction: u8, pub batch_size: u8, pub torque_min: u32, pub torque_max: u32, pub final_torque_target: u32, pub angle_min: u16, pub angle_max: u16, pub final_angle_target: u16, pub first_torque_target: u32, pub start_final_angle: u32,
}

Fields§

§parameter_set_id: u16

Three ASCII digits for the parameter set ID (000-999)

§parameter_set_name: String

25 ASCII characters for the parameter set name, right-padded with spaces if less than 25 characters

§date_of_last_change: String

19 ASCII characters for the date of the last change in the parameter set (YYYY-MM-DD:HH:MM:SS)

§rotation_direction: u8

1 ASCII character for the rotation direction (1 = CW, 2 = CCW)

§batch_size: u8

Two ASCII digits for the batch size (00-99)

§torque_min: u32

Six ASCII digits for the torque minimum, multiplied by 100 (000000-999999)

§torque_max: u32

Six ASCII digits for the torque maximum, multiplied by 100 (000000-999999)

§final_torque_target: u32

Six ASCII digits for the final torque target, multiplied by 100 (000000-999999)

§angle_min: u16

Five ASCII digits for the angle minimum (00000-99999)

§angle_max: u16

Five ASCII digits for the angle maximum (00000-99999)

§final_angle_target: u16

Five ASCII digits for the final angle target (00000-99999)

§first_torque_target: u32

Six ASCII digits for the first torque target, multiplied by 100 (000000-999999)

§start_final_angle: u32

Six ASCII digits for the start final angle, multiplied by 100 (000000-999999)

Trait Implementations§

Source§

impl Debug for MID0015rev2

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Decode for MID0015rev2

Source§

fn decode(decoder: &mut Decoder<'_>) -> Result<Self>

This will take the decoder and return the data itself, parsed from the decoder’s input bytes.
Source§

fn decode_sized(decoder: &mut Decoder<'_>, size: usize) -> Result<Self>

Source§

impl Default for MID0015rev2

Source§

fn default() -> MID0015rev2

Returns the “default value” for a type. Read more
Source§

impl Encode for MID0015rev2

Source§

fn encode(&self, encoder: &mut Encoder) -> Result<()>

Source§

fn encode_sized(&self, encoder: &mut Encoder, size: usize) -> Result<()>

Source§

impl Message for MID0015rev2

Source§

impl PartialEq for MID0015rev2

Source§

fn eq(&self, other: &MID0015rev2) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

const fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for MID0015rev2

Source§

impl StructuralPartialEq for MID0015rev2

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.