pub struct Adapter { /* private fields */ }
Expand description
Represent an adapter.
Implementations
sourceimpl Adapter
impl Adapter
sourcepub fn adapter_name(&self) -> &String
pub fn adapter_name(&self) -> &String
Get the adapter’s name
sourcepub fn ip_addresses(&self) -> &Vec<IpAddr>
pub fn ip_addresses(&self) -> &Vec<IpAddr>
Get the adapter’s ip addresses (unicast ip addresses)
sourcepub fn dns_servers(&self) -> &Vec<IpAddr>
pub fn dns_servers(&self) -> &Vec<IpAddr>
Get the adapter’s dns servers (the preferred dns server is first)
sourcepub fn description(&self) -> &String
pub fn description(&self) -> &String
Get the adapter’s description
sourcepub fn friendly_name(&self) -> &String
pub fn friendly_name(&self) -> &String
Get the adapter’s friendly name
sourcepub fn physical_address(&self) -> &Option<Vec<u8>>
pub fn physical_address(&self) -> &Option<Vec<u8>>
Get the adapter’s physical (MAC) address
sourcepub fn receive_link_speed(&self) -> u64
pub fn receive_link_speed(&self) -> u64
Get the adapter Recieve Link Speed (bits per second)
sourcepub fn transmit_link_speed(&self) -> u64
pub fn transmit_link_speed(&self) -> u64
Get the Trasnmit Link Speed (bits per second)
sourcepub fn oper_status(&self) -> OperStatus
pub fn oper_status(&self) -> OperStatus
Check if the adapter is up (OperStatus is IfOperStatusUp)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Adapter
impl Send for Adapter
impl Sync for Adapter
impl Unpin for Adapter
impl UnwindSafe for Adapter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more