[−][src]Struct ipconfig::Adapter
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
pub fn receive_link_speed(&self) -> u64
[src]
Get the adapter Recieve Link Speed (bits per second)
pub fn transmit_link_speed(&self) -> u64
[src]
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
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,