pub struct MbusSlavePortSetupConfig {
pub logical_name: ObisCode,
pub default_baud: u8,
pub avail_baud: u8,
pub addr_state: u8,
pub bus_address: u8,
}Expand description
Configuration structure used to build an MbusSlavePortSetup object.
Fields§
§logical_name: ObisCodeAttribute 1: the object’s logical name (OBIS code).
default_baud: u8Attribute 2: default baud rate (enum).
avail_baud: u8Attribute 3: available baud rates (enum).
addr_state: u8Attribute 4: address assignment state (enum).
bus_address: u8Attribute 5: bus address.
Trait Implementations§
Source§impl Clone for MbusSlavePortSetupConfig
impl Clone for MbusSlavePortSetupConfig
Source§fn clone(&self) -> MbusSlavePortSetupConfig
fn clone(&self) -> MbusSlavePortSetupConfig
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 MbusSlavePortSetupConfig
impl Debug for MbusSlavePortSetupConfig
Source§impl<'de> Deserialize<'de> for MbusSlavePortSetupConfig
impl<'de> Deserialize<'de> for MbusSlavePortSetupConfig
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 MbusSlavePortSetupConfig
impl RefUnwindSafe for MbusSlavePortSetupConfig
impl Send for MbusSlavePortSetupConfig
impl Sync for MbusSlavePortSetupConfig
impl Unpin for MbusSlavePortSetupConfig
impl UnsafeUnpin for MbusSlavePortSetupConfig
impl UnwindSafe for MbusSlavePortSetupConfig
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