pub struct Host {
pub name: Option<String>,
pub ip: Option<String>,
pub mac: Option<String>,
pub active: bool,
pub interface: Option<String>,
pub address_source: Option<String>,
pub permanent_address: Option<bool>,
pub last_seen: Option<String>,
pub guest: Option<bool>,
pub internet_access: Option<String>,
pub speed: Option<u32>,
}Expand description
A host the device knows, active or not.
Fields§
§name: Option<String>§ip: Option<String>§mac: Option<String>§active: bool§interface: Option<String>Like Ethernet or 802.11.
address_source: Option<String>Like DHCP or Static. In the entries, not in the host list; see
crate::host::add_addressing for all hosts at once.
permanent_address: Option<bool>Whether the device always gives the host the same IPv4 address
(“permanent assignment”). Only from the web interface, see
crate::host::add_addressing.
last_seen: Option<String>When the host was last connected, in UTC, like
2026-11-20T18:05:42Z. Only from the web interface, see
crate::host::add_addressing. The device forgets it after a while.
guest: Option<bool>Whether the host is in the guest network. Only in the host list.
internet_access: Option<String>Whether the host may use the internet: granted, denied or
error. Only in the host list.
speed: Option<u32>The speed of the connection to the host, in Mbit/s. Only in the host list.
Trait Implementations§
impl Eq for Host
impl StructuralPartialEq for Host
Auto Trait Implementations§
impl Forget for Host
impl Freeze for Host
impl Move for Host
impl RefUnwindSafe for Host
impl Send for Host
impl Sync for Host
impl Unpin for Host
impl UnsafeUnpin for Host
impl UnwindSafe for Host
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