pub struct MbusSlaveConfig {
pub logical_name: ObisCode,
pub physical_address: u16,
pub logical_address: u16,
pub id_number: Vec<u8>,
pub manufacturer: Vec<u8>,
pub version: u8,
pub medium: u8,
}Expand description
Configuration structure used to build an MbusSlave object.
Fields§
§logical_name: ObisCodeAttribute 1: the object’s logical name (OBIS code).
physical_address: u16Attribute 2: primary (physical) address on the M-Bus.
logical_address: u16Attribute 3: logical (secondary) address.
id_number: Vec<u8>Attribute 4: device identification number (octet-string, BCD).
manufacturer: Vec<u8>Attribute 5: manufacturer identification (octet-string).
version: u8Attribute 6: device version / generation.
medium: u8Attribute 7: medium (per EN 13757-3, Table 3).
Trait Implementations§
Source§impl Clone for MbusSlaveConfig
impl Clone for MbusSlaveConfig
Source§fn clone(&self) -> MbusSlaveConfig
fn clone(&self) -> MbusSlaveConfig
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 moreSource§impl Debug for MbusSlaveConfig
impl Debug for MbusSlaveConfig
Source§impl<'de> Deserialize<'de> for MbusSlaveConfig
impl<'de> Deserialize<'de> for MbusSlaveConfig
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
Auto Trait Implementations§
impl Freeze for MbusSlaveConfig
impl RefUnwindSafe for MbusSlaveConfig
impl Send for MbusSlaveConfig
impl Sync for MbusSlaveConfig
impl Unpin for MbusSlaveConfig
impl UnsafeUnpin for MbusSlaveConfig
impl UnwindSafe for MbusSlaveConfig
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