pub struct Interface {
pub index: u32,
pub name: String,
pub hw_addr: String,
pub ips: Vec<IpRecord>,
}Expand description
Information about one network interface at a point in time.
Fields§
§index: u32Internal index identifying this interface.
name: StringInterface name.
hw_addr: StringHardware address. Android may have a placeholder due to privacy restrictions.
ips: Vec<IpRecord>List of associated IPs and prefix length (netmask).
Implementations§
Trait Implementations§
impl Eq for Interface
impl StructuralPartialEq for Interface
Auto Trait Implementations§
impl Freeze for Interface
impl RefUnwindSafe for Interface
impl Send for Interface
impl Sync for Interface
impl Unpin for Interface
impl UnwindSafe for Interface
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more