Struct netwatch::interfaces::State
source · pub struct State {
pub interfaces: HashMap<String, Interface>,
pub have_v6: bool,
pub have_v4: bool,
/* private fields */
}Expand description
Intended to store the state of the machine’s network interfaces, routing table, and other network configuration. For now it’s pretty basic.
Fields§
§interfaces: HashMap<String, Interface>Maps from an interface name interface.
have_v6: boolWhether this machine has an IPv6 Global or Unique Local Address which might provide connectivity.
have_v4: boolWhether the machine has some non-localhost, non-link-local IPv4 address.
Implementations§
Trait Implementations§
source§impl PartialEq for State
impl PartialEq for State
impl Eq for State
impl StructuralPartialEq for State
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
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