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