pub struct Device {
pub address: String,
pub host: String,
pub manufacturer: Option<String>,
pub model: Option<String>,
pub firmware: Option<String>,
pub role: Role,
pub found_by: Vec<Source>,
/* private fields */
}Expand description
A verified device. The texts come from the network and are untrusted.
Fields§
§address: StringThe IP address, with the port if it is not the TR-064 port 49000.
host: StringThe host for --host and a profile: the IP address, which means
HTTPS on port 49443, or an http address for another port.
manufacturer: Option<String>The manufacturer.
model: Option<String>The model, like FRITZ!Box 7690.
firmware: Option<String>The FRITZ!OS version, like 8.25, if the description has it.
role: RoleRouter or repeater.
found_by: Vec<Source>How it was found, in the order of Source.
Trait Implementations§
impl Eq for Device
impl StructuralPartialEq for Device
Auto Trait Implementations§
impl Forget for Device
impl Freeze for Device
impl Move for Device
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnsafeUnpin for Device
impl UnwindSafe for Device
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