pub struct NetworkConfig {
pub show_addresses: bool,
pub public_ip: bool,
pub public_ip_url: String,
pub public_ip_interval: Duration,
}Expand description
The network panel.
Fields§
§show_addresses: boolShow the addresses of the interface shown (the TUI’s i and the
GUI’s “IP” switch them for the moment).
public_ip: boolAlso look up each host’s public IPv4 address with an outside
service (public_ip_url); off by default, as it contacts a third
party.
public_ip_url: StringService answering with the caller’s address as plain text.
public_ip_interval: DurationTime between lookups, written like “30m” or “1h”.
Implementations§
Source§impl NetworkConfig
impl NetworkConfig
Sourcepub fn public_ip_lookup(&self) -> Option<PublicIpLookup>
pub fn public_ip_lookup(&self) -> Option<PublicIpLookup>
The lookup to ask every host’s data source for, if any.
Trait Implementations§
Source§impl Clone for NetworkConfig
impl Clone for NetworkConfig
Source§impl Debug for NetworkConfig
impl Debug for NetworkConfig
Source§impl Default for NetworkConfig
impl Default for NetworkConfig
Source§impl<'de> Deserialize<'de> for NetworkConfigwhere
NetworkConfig: Default,
impl<'de> Deserialize<'de> for NetworkConfigwhere
NetworkConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for NetworkConfig
impl PartialEq for NetworkConfig
Source§impl Serialize for NetworkConfig
impl Serialize for NetworkConfig
impl StructuralPartialEq for NetworkConfig
Auto Trait Implementations§
impl Forget for NetworkConfig
impl Freeze for NetworkConfig
impl RefUnwindSafe for NetworkConfig
impl Send for NetworkConfig
impl Sync for NetworkConfig
impl Unpin for NetworkConfig
impl UnsafeUnpin for NetworkConfig
impl UnwindSafe for NetworkConfig
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