Struct piface::interface::PrimaryInterface [−][src]
pub struct PrimaryInterface {
pub name: String,
pub mac_address: MacAddress,
pub default_route: DefaultRoute,
}
Expand description
This contains the interface name, mac address, and the related default route
The interface name will use the friendly name on windows machines The mac address will be parsed for standardization
Examples
use piface::PrimaryInterface;
let iface = PrimaryInterface::load()?;
println!("{:#?}", iface);
Fields
name: String
mac_address: MacAddress
default_route: DefaultRoute
Implementations
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for PrimaryInterface
impl Send for PrimaryInterface
impl Sync for PrimaryInterface
impl Unpin for PrimaryInterface
impl UnwindSafe for PrimaryInterface
Blanket Implementations
Mutably borrows from an owned value. Read more