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