Struct iphlpapi::ip_adapter_info::IpAdapterInfo[][src]

#[repr(transparent)]pub struct IpAdapterInfo(_);

Data about a network adapter

Implementations

impl IpAdapterInfo[src]

pub fn next(&self) -> Option<&Self>[src]

Try to get the next adapter in this linked list.

pub fn iter(&self) -> Iter<'_>

Notable traits for Iter<'a>

impl<'a> Iterator for Iter<'a> type Item = &'a IpAdapterInfo;
[src]

Iterate over the remaining data in this linked list

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

Get the combo index. This is reserved.

pub fn get_name(&self) -> &CStr[src]

The GUID name of the adapter

pub fn get_description(&self) -> &CStr[src]

The “friendly” name of the adapter

pub fn get_address(&self) -> &[u8][src]

The Hardware Address

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

The index. This is not persistent.

pub fn get_kind(&self) -> Result<AdaperKind, u32>[src]

Get the adapter kind.

pub fn get_dhcp_enabled(&self) -> bool[src]

Check if dhcp is enabled for this adapter

pub fn get_current_ip_address(&self) -> Option<&IpAddrString>[src]

Reserved.

pub fn get_ip_address_list(&self) -> &IpAddrString[src]

A linked list of ip addresses associated with this adapter

pub fn get_gateway_list(&self) -> &IpAddrString[src]

A linked list of gateways associated with this adapter

pub fn get_dhcp_server(&self) -> Option<&IpAddrString>[src]

Get the addr of the dhcp server.

pub fn get_have_wins(&self) -> bool[src]

Checks whether WINS is enabled

pub fn get_primary_wins_server(&self) -> Option<&IpAddrString>[src]

Get the primary wins server.

pub fn get_secondary_wins_server(&self) -> Option<&IpAddrString>[src]

Get the secondary wins server.

pub fn get_lease_obtained(&self) -> Option<SystemTime>[src]

Get the time the DHCP lease was obtained.

pub fn get_lease_expires(&self) -> Option<SystemTime>[src]

Get the time the DHCP lease expires.

Trait Implementations

impl Debug for IpAdapterInfo[src]

Auto Trait Implementations

impl RefUnwindSafe for IpAdapterInfo

impl !Send for IpAdapterInfo

impl !Sync for IpAdapterInfo

impl Unpin for IpAdapterInfo

impl UnwindSafe for IpAdapterInfo

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.