pub struct PulseWidth(/* private fields */);Expand description
Pulse width for the pulse output in milliseconds.
Note: If pulse constant is 1000 imp/kWh, then the pulse width is fixed to 35ms and cannot be adjusted!
Implementations§
Source§impl PulseWidth
impl PulseWidth
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 PulseWidth
impl Clone for PulseWidth
Source§fn clone(&self) -> PulseWidth
fn clone(&self) -> PulseWidth
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PulseWidth
Source§impl Debug for PulseWidth
impl Debug for PulseWidth
Source§impl Default for PulseWidth
impl Default for PulseWidth
Source§impl Deref for PulseWidth
impl Deref for PulseWidth
Source§impl<'de> Deserialize<'de> for PulseWidth
impl<'de> Deserialize<'de> for PulseWidth
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 PulseWidth
impl Display for PulseWidth
Source§impl ModbusParam for PulseWidth
impl ModbusParam for PulseWidth
Source§impl PartialEq for PulseWidth
impl PartialEq for PulseWidth
Source§impl Serialize for PulseWidth
impl Serialize for PulseWidth
impl StructuralPartialEq for PulseWidth
Auto Trait Implementations§
impl Freeze for PulseWidth
impl RefUnwindSafe for PulseWidth
impl Send for PulseWidth
impl Sync for PulseWidth
impl Unpin for PulseWidth
impl UnsafeUnpin for PulseWidth
impl UnwindSafe for PulseWidth
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