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