pub enum PulseEnergyType {
ImportActiveEnergy,
TotalActiveEnergy,
ExportActiveEnergy,
}Expand description
Pulse energy type for the pulse output. This is the value that the pulse output returns.
Variants§
Implementations§
Source§impl PulseEnergyType
impl PulseEnergyType
pub fn decode_from_holding_registers(words: &[Word]) -> Result<Self, Error>
pub fn encode_for_write_registers(&self) -> Vec<Word> ⓘ
Trait Implementations§
Source§impl Clone for PulseEnergyType
impl Clone for PulseEnergyType
Source§fn clone(&self) -> PulseEnergyType
fn clone(&self) -> PulseEnergyType
Returns a duplicate 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 PulseEnergyType
impl Debug for PulseEnergyType
Source§impl Default for PulseEnergyType
impl Default for PulseEnergyType
Source§fn default() -> PulseEnergyType
fn default() -> PulseEnergyType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PulseEnergyType
impl<'de> Deserialize<'de> for PulseEnergyType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for PulseEnergyType
impl Display for PulseEnergyType
Source§impl ModbusParam for PulseEnergyType
impl ModbusParam for PulseEnergyType
Source§impl PartialEq for PulseEnergyType
impl PartialEq for PulseEnergyType
Source§impl Serialize for PulseEnergyType
impl Serialize for PulseEnergyType
impl Copy for PulseEnergyType
impl StructuralPartialEq for PulseEnergyType
Auto Trait Implementations§
impl Freeze for PulseEnergyType
impl RefUnwindSafe for PulseEnergyType
impl Send for PulseEnergyType
impl Sync for PulseEnergyType
impl Unpin for PulseEnergyType
impl UnwindSafe for PulseEnergyType
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