#[repr(C, packed(1))]pub struct Dns { /* private fields */ }
Expand description
DNS messaging device path node.
Implementations§
source§impl Dns
impl Dns
sourcepub fn address_type(&self) -> DnsAddressType
pub fn address_type(&self) -> DnsAddressType
Whether the addresses are IPv4 or IPv6.
sourcepub fn addresses(&self) -> UnalignedSlice<'_, IpAddress>
pub fn addresses(&self) -> UnalignedSlice<'_, IpAddress>
One or more instances of the DNS server address.
Trait Implementations§
source§impl TryFrom<&DevicePathNode> for &Dns
impl TryFrom<&DevicePathNode> for &Dns
§type Error = NodeConversionError
type Error = NodeConversionError
The type returned in the event of a conversion error.