pub struct AllDataEvent {
pub current_velocity: u16,
pub current_position: i32,
pub remaining_steps: i32,
pub stack_voltage: u16,
pub external_voltage: u16,
pub current_consumption: u16,
}
Fields§
§current_velocity: u16
§current_position: i32
§remaining_steps: i32
§stack_voltage: u16
§external_voltage: u16
§current_consumption: u16
Trait Implementations§
Source§impl Clone for AllDataEvent
impl Clone for AllDataEvent
Source§fn clone(&self) -> AllDataEvent
fn clone(&self) -> AllDataEvent
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 AllDataEvent
impl Debug for AllDataEvent
Source§impl Default for AllDataEvent
impl Default for AllDataEvent
Source§fn default() -> AllDataEvent
fn default() -> AllDataEvent
Returns the “default value” for a type. Read more
Source§impl FromByteSlice for AllDataEvent
impl FromByteSlice for AllDataEvent
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]) -> AllDataEvent
fn from_le_byte_slice(bytes: &[u8]) -> AllDataEvent
Deserialize the implementing type from a byte slice.
Source§impl Hash for AllDataEvent
impl Hash for AllDataEvent
Source§impl PartialEq for AllDataEvent
impl PartialEq for AllDataEvent
impl Copy for AllDataEvent
impl Eq for AllDataEvent
impl StructuralPartialEq for AllDataEvent
Auto Trait Implementations§
impl Freeze for AllDataEvent
impl RefUnwindSafe for AllDataEvent
impl Send for AllDataEvent
impl Sync for AllDataEvent
impl Unpin for AllDataEvent
impl UnwindSafe for AllDataEvent
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