Struct iphlpapi::ip_adapter_info::IpAdapterInfo [−][src]
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]
Notable traits for Iter<'a>
impl<'a> Iterator for Iter<'a> type Item = &'a IpAdapterInfo;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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,