pub struct IecLocalPortSetupConfig {
pub logical_name: ObisCode,
pub version: u8,
pub default_mode: u8,
pub default_baud: u8,
pub prop_baud: u8,
pub response_time: u8,
pub device_addr: Vec<u8>,
pub pass_p1: Vec<u8>,
pub pass_p2: Vec<u8>,
pub pass_w5: Vec<u8>,
}Expand description
Configuration structure used to build an IecLocalPortSetup object.
Fields§
§logical_name: ObisCodeAttribute 1: the object’s logical name (OBIS code).
version: u8Class version: 0 or 1 (identical attribute set).
default_mode: u8Attribute 2: default communication mode (enum).
default_baud: u8Attribute 3: default baud rate (enum).
prop_baud: u8Attribute 4: proposed baud rate (enum).
response_time: u8Attribute 5: response time (enum).
device_addr: Vec<u8>Attribute 6: device address (octet-string).
pass_p1: Vec<u8>Attribute 7: password 1 (octet-string).
pass_p2: Vec<u8>Attribute 8: password 2 (octet-string).
pass_w5: Vec<u8>Attribute 9: password W5 (octet-string).
Trait Implementations§
Source§impl Clone for IecLocalPortSetupConfig
impl Clone for IecLocalPortSetupConfig
Source§fn clone(&self) -> IecLocalPortSetupConfig
fn clone(&self) -> IecLocalPortSetupConfig
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 IecLocalPortSetupConfig
impl Debug for IecLocalPortSetupConfig
Source§impl<'de> Deserialize<'de> for IecLocalPortSetupConfig
impl<'de> Deserialize<'de> for IecLocalPortSetupConfig
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 IecLocalPortSetupConfig
impl RefUnwindSafe for IecLocalPortSetupConfig
impl Send for IecLocalPortSetupConfig
impl Sync for IecLocalPortSetupConfig
impl Unpin for IecLocalPortSetupConfig
impl UnsafeUnpin for IecLocalPortSetupConfig
impl UnwindSafe for IecLocalPortSetupConfig
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