pub struct IpInfo {
pub ipv4: bool,
pub ipv6: bool,
pub dhcp_enabled: bool,
pub ipv4_addresses: Vec<Ipv4AddressInfo>,
pub ipv6_addresses: Vec<Ipv6AddressInfo>,
pub ipv4_gateways: Vec<Ipv4Addr>,
pub ipv6_gateways: Vec<Ipv6Addr>,
pub ipv4_dns_servers: Vec<Ipv4Addr>,
pub ipv6_dns_servers: Vec<Ipv6Addr>,
}
Expand description
The result of getting IP address information for a given adapter.
Fields§
§ipv4: bool
Whether ipv4 is enabled.
ipv6: bool
Whether ipv6 is enabled.
dhcp_enabled: bool
Whether DHCP is enabled.
ipv4_addresses: Vec<Ipv4AddressInfo>
The set of bound IPv4 addresses.
ipv6_addresses: Vec<Ipv6AddressInfo>
The set of bound IPv6 addresses.
ipv4_gateways: Vec<Ipv4Addr>
The set of IPv4 gateways.
ipv6_gateways: Vec<Ipv6Addr>
The set of IPv6 gateways.
ipv4_dns_servers: Vec<Ipv4Addr>
The set of IPv4 DNS servers.
ipv6_dns_servers: Vec<Ipv6Addr>
The set of IPv6 DNS servers.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IpInfo
impl RefUnwindSafe for IpInfo
impl Send for IpInfo
impl Sync for IpInfo
impl Unpin for IpInfo
impl UnwindSafe for IpInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> MeshField for T
impl<T> MeshField for T
§impl<T> MeshPayload for T
impl<T> MeshPayload for T
§impl<T> SerializeMessage for Twhere
T: 'static + MeshPayload + Send,
impl<T> SerializeMessage for Twhere
T: 'static + MeshPayload + Send,
§fn compute_message_size(&mut self, sizer: MessageSizer<'_>)
fn compute_message_size(&mut self, sizer: MessageSizer<'_>)
Computes the message size, as in [
MessageEncode::compute_message_size
].§fn write_message(self, writer: MessageWriter<'_, '_, Resource>)
fn write_message(self, writer: MessageWriter<'_, '_, Resource>)
Writes the message, as in [
MessageEncode::write_message
].