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