Struct uefi::proto::device_path::messaging::Dns

source ·
#[repr(C, packed(1))]
pub struct Dns { /* private fields */ }
Expand description

DNS messaging device path node.

Implementations§

source§

impl Dns

source

pub fn address_type(&self) -> DnsAddressType

Whether the addresses are IPv4 or IPv6.

source

pub fn addresses(&self) -> UnalignedSlice<'_, IpAddress>

One or more instances of the DNS server address.

Trait Implementations§

source§

impl Debug for Dns

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Pointee for Dns
where [IpAddress]: Pointee,

§

type Metadata = <[IpAddress] as Pointee>::Metadata

The type for metadata in pointers and references to Self.
source§

impl TryFrom<&DevicePathNode> for &Dns

§

type Error = NodeConversionError

The type returned in the event of a conversion error.
source§

fn try_from(node: &DevicePathNode) -> Result<Self, Self::Error>

Performs the conversion.

Auto Trait Implementations§

§

impl Freeze for Dns

§

impl RefUnwindSafe for Dns

§

impl Send for Dns

§

impl !Sized for Dns

§

impl Sync for Dns

§

impl Unpin for Dns

§

impl UnwindSafe for Dns

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more