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