pub struct NetworkInterface {
pub token: String,
pub enabled: bool,
pub name: String,
pub hw_address: String,
pub mtu: u32,
pub ipv4_enabled: bool,
pub ipv4_address: String,
pub ipv4_prefix_length: u32,
pub ipv4_from_dhcp: bool,
pub ipv6_enabled: bool,
pub ipv6_from_dhcp: bool,
pub ipv6_address: Option<String>,
}Expand description
Network interface configuration returned by GetNetworkInterfaces.
Fields§
§token: String§enabled: bool§name: String§hw_address: String§mtu: u32§ipv4_enabled: bool§ipv4_address: StringManual or DHCP-assigned IPv4 address. Empty when DHCP is active and no address is available.
ipv4_prefix_length: u32§ipv4_from_dhcp: bool§ipv6_enabled: booltrue if the IPv6 stack is enabled on this interface.
ipv6_from_dhcp: booltrue if the IPv6 address is obtained via DHCPv6.
ipv6_address: Option<String>Manually configured or link-local IPv6 address, if available.
Trait Implementations§
Source§impl Clone for NetworkInterface
impl Clone for NetworkInterface
Source§fn clone(&self) -> NetworkInterface
fn clone(&self) -> NetworkInterface
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for NetworkInterface
impl RefUnwindSafe for NetworkInterface
impl Send for NetworkInterface
impl Sync for NetworkInterface
impl Unpin for NetworkInterface
impl UnsafeUnpin for NetworkInterface
impl UnwindSafe for NetworkInterface
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