Struct tinkerforge::servo_brick::VelocityReachedEvent
source · pub struct VelocityReachedEvent {
pub servo_num: u8,
pub velocity: i16,
}
Fields§
§servo_num: u8
§velocity: i16
Trait Implementations§
source§impl Clone for VelocityReachedEvent
impl Clone for VelocityReachedEvent
source§fn clone(&self) -> VelocityReachedEvent
fn clone(&self) -> VelocityReachedEvent
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 VelocityReachedEvent
impl Debug for VelocityReachedEvent
source§impl Default for VelocityReachedEvent
impl Default for VelocityReachedEvent
source§fn default() -> VelocityReachedEvent
fn default() -> VelocityReachedEvent
Returns the “default value” for a type. Read more
source§impl FromByteSlice for VelocityReachedEvent
impl FromByteSlice for VelocityReachedEvent
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]) -> VelocityReachedEvent
fn from_le_byte_slice(bytes: &[u8]) -> VelocityReachedEvent
Deserialize the implementing type from a byte slice.
source§impl Hash for VelocityReachedEvent
impl Hash for VelocityReachedEvent
source§impl PartialEq for VelocityReachedEvent
impl PartialEq for VelocityReachedEvent
source§fn eq(&self, other: &VelocityReachedEvent) -> bool
fn eq(&self, other: &VelocityReachedEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for VelocityReachedEvent
impl Eq for VelocityReachedEvent
impl StructuralPartialEq for VelocityReachedEvent
Auto Trait Implementations§
impl RefUnwindSafe for VelocityReachedEvent
impl Send for VelocityReachedEvent
impl Sync for VelocityReachedEvent
impl Unpin for VelocityReachedEvent
impl UnwindSafe for VelocityReachedEvent
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