pub struct Ipv4SetupAttrs {
pub logical_name: LogicalName,
pub ip_address: [u8; 4],
pub subnet_mask: [u8; 4],
pub gateway_ip_address: [u8; 4],
pub use_dhcp: bool,
}Expand description
IPv4 setup class (class_id = 42) attributes.
- attr 1: logical_name (octet-string)
- attr 2: ip_address (octet-string, 4 bytes)
- attr 3: subnet_mask (octet-string, 4 bytes)
- attr 4: gateway_ip_address (octet-string, 4 bytes)
- attr 5: use_dhcp (boolean)
Fields§
§logical_name: LogicalNameOBIS logical name (attribute 1).
ip_address: [u8; 4]IP address, 4 bytes (attribute 2).
subnet_mask: [u8; 4]Subnet mask, 4 bytes (attribute 3).
gateway_ip_address: [u8; 4]Gateway IP address, 4 bytes (attribute 4).
use_dhcp: boolUse DHCP flag (attribute 5).
Trait Implementations§
Source§impl Clone for Ipv4SetupAttrs
impl Clone for Ipv4SetupAttrs
Source§fn clone(&self) -> Ipv4SetupAttrs
fn clone(&self) -> Ipv4SetupAttrs
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 Ipv4SetupAttrs
impl Debug for Ipv4SetupAttrs
Source§impl<'de> Deserialize<'de> for Ipv4SetupAttrs
impl<'de> Deserialize<'de> for Ipv4SetupAttrs
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 Ipv4SetupAttrs
impl RefUnwindSafe for Ipv4SetupAttrs
impl Send for Ipv4SetupAttrs
impl Sync for Ipv4SetupAttrs
impl Unpin for Ipv4SetupAttrs
impl UnsafeUnpin for Ipv4SetupAttrs
impl UnwindSafe for Ipv4SetupAttrs
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