pub struct Node {
pub uid: String,
pub name: Option<String>,
pub model: Option<String>,
pub mac: Option<String>,
pub role: Option<String>,
pub meshed: bool,
pub ip: Option<String>,
pub active: Option<bool>,
pub macs: Vec<String>,
}Expand description
A device in the mesh: a FRITZ! device or a host.
Fields§
§uid: StringThe id of the node in the mesh list, which links refer to.
name: Option<String>§model: Option<String>§mac: Option<String>§role: Option<String>Like master for the device that leads the mesh, or slave.
meshed: boolWhether the node is part of the mesh, rather than a host connected to it.
ip: Option<String>The IPv4 address of the node, from the host list, or for the device
that leads the mesh from its LAN settings. None if unknown.
active: Option<bool>Whether the host the address is from is active. An inactive host
keeps its last address, which the device may give to another host.
None if the address is not from the host list.
macs: Vec<String>The MAC addresses of the node and of all its interfaces.
Trait Implementations§
impl Eq for Node
impl StructuralPartialEq for Node
Auto Trait Implementations§
impl Forget for Node
impl Freeze for Node
impl Move for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnsafeUnpin for Node
impl UnwindSafe for Node
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