[][src]Struct ipconfig::Adapter

pub struct Adapter { /* fields omitted */ }

Represent an adapter.

Methods

impl Adapter[src]

pub fn adapter_name(&self) -> &str[src]

Get the adapter's name

pub fn ip_addresses(&self) -> &[IpAddr][src]

Get the adapter's ip addresses (unicast ip addresses)

pub fn dns_servers(&self) -> &[IpAddr][src]

Get the adapter's dns servers (the preferred dns server is first)

pub fn description(&self) -> &str[src]

Get the adapter's description

pub fn friendly_name(&self) -> &str[src]

Get the adapter's friendly name

pub fn physical_address(&self) -> Option<&[u8]>[src]

Get the adapter's physical (MAC) address

Get the adapter Recieve Link Speed (bits per second)

Get the Trasnmit Link Speed (bits per second)

pub fn oper_status(&self) -> OperStatus[src]

Check if the adapter is up (OperStatus is IfOperStatusUp)

pub fn if_type(&self) -> IfType[src]

Get the interface type

pub fn ipv6_if_index(&self) -> u32[src]

Get the IPv6 interface index.

The return value can be used as an IPv6 scope id for link-local addresses.

Trait Implementations

impl Debug for Adapter[src]

Auto Trait Implementations

impl Send for Adapter

impl Sync for Adapter

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]