pub struct AllSettings {Show 14 fields
pub system_type: SystemType,
pub pulse_width: PulseWidth,
pub kppa: KPPA,
pub parity_and_stop_bit: ParityAndStopBit,
pub address: Address,
pub pulse_constant: PulseConstant,
pub password: Password,
pub baud_rate: BaudRate,
pub auto_scroll_time: AutoScrollTime,
pub backlight_time: BacklightTime,
pub pulse_energy_type: PulseEnergyType,
pub serial_number: SerialNumber,
pub meter_code: MeterCode,
pub software_version: SoftwareVersion,
}Available on crate features
tokio-rtu-sync or tokio-tcp-sync or tokio-rtu or tokio-tcp only.Expand description
A struct containing all the settings of the SDM72 meter.
Fields§
§system_type: SystemType§pulse_width: PulseWidth§kppa: KPPA§parity_and_stop_bit: ParityAndStopBit§address: Address§pulse_constant: PulseConstant§password: Password§baud_rate: BaudRate§auto_scroll_time: AutoScrollTime§backlight_time: BacklightTime§pulse_energy_type: PulseEnergyType§serial_number: SerialNumber§meter_code: MeterCode§software_version: SoftwareVersionTrait Implementations§
Source§impl Clone for AllSettings
impl Clone for AllSettings
Source§fn clone(&self) -> AllSettings
fn clone(&self) -> AllSettings
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 AllSettings
impl Debug for AllSettings
Source§impl<'de> Deserialize<'de> for AllSettings
impl<'de> Deserialize<'de> for AllSettings
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 AllSettings
impl Display for AllSettings
Source§impl PartialEq for AllSettings
impl PartialEq for AllSettings
Source§impl Serialize for AllSettings
impl Serialize for AllSettings
impl Copy for AllSettings
impl StructuralPartialEq for AllSettings
Auto Trait Implementations§
impl Freeze for AllSettings
impl RefUnwindSafe for AllSettings
impl Send for AllSettings
impl Sync for AllSettings
impl Unpin for AllSettings
impl UnwindSafe for AllSettings
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