pub struct Ipv4SetupConfig {
pub logical_name: ObisCode,
pub dl_reference: Vec<u8>,
pub ip_address: u32,
pub multicast_ip_address: Vec<u32>,
pub ip_options: Vec<IpOption>,
pub subnet_mask: u32,
pub gateway_ip_address: u32,
pub use_dhcp_flag: bool,
pub primary_dns_address: u32,
pub secondary_dns_address: u32,
}Expand description
Configuration structure used to build an Ipv4Setup object.
Fields§
§logical_name: ObisCodeAttribute 1: the object’s logical name (OBIS code).
dl_reference: Vec<u8>Attribute 2: reference to the data link layer setup object.
ip_address: u32Attribute 3: the IPv4 address.
multicast_ip_address: Vec<u32>Attribute 4: array of multicast IP addresses (double-long-unsigned).
ip_options: Vec<IpOption>Attribute 5: array of IP options.
subnet_mask: u32Attribute 6: subnet mask.
gateway_ip_address: u32Attribute 7: gateway IP address.
use_dhcp_flag: boolAttribute 8: whether DHCP is used to obtain the address.
primary_dns_address: u32Attribute 9: primary DNS address.
secondary_dns_address: u32Attribute 10: secondary DNS address.
Trait Implementations§
Source§impl Clone for Ipv4SetupConfig
impl Clone for Ipv4SetupConfig
Source§fn clone(&self) -> Ipv4SetupConfig
fn clone(&self) -> Ipv4SetupConfig
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 Ipv4SetupConfig
impl Debug for Ipv4SetupConfig
Source§impl<'de> Deserialize<'de> for Ipv4SetupConfig
impl<'de> Deserialize<'de> for Ipv4SetupConfig
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 Ipv4SetupConfig
impl RefUnwindSafe for Ipv4SetupConfig
impl Send for Ipv4SetupConfig
impl Sync for Ipv4SetupConfig
impl Unpin for Ipv4SetupConfig
impl UnsafeUnpin for Ipv4SetupConfig
impl UnwindSafe for Ipv4SetupConfig
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