pub struct DeviceWithPorts {
pub ip: String,
pub mac: String,
pub hostname: String,
pub vendor: String,
pub is_current_host: bool,
pub open_ports: HashSet<Port>,
}Expand description
Data structure representing a device on the network with detected open ports
Fields§
§ip: StringIPv4 of the device
mac: StringMAC address of the device
hostname: StringHostname of the device
vendor: StringDevice vendor if known
is_current_host: boolWhether or not the device is the current host running the scan
open_ports: HashSet<Port>A list of detected open ports on the device
Trait Implementations§
Source§impl Clone for DeviceWithPorts
impl Clone for DeviceWithPorts
Source§fn clone(&self) -> DeviceWithPorts
fn clone(&self) -> DeviceWithPorts
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DeviceWithPorts
impl Debug for DeviceWithPorts
Source§impl<'de> Deserialize<'de> for DeviceWithPorts
impl<'de> Deserialize<'de> for DeviceWithPorts
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 From<DeviceWithPorts> for Device
impl From<DeviceWithPorts> for Device
Source§fn from(value: DeviceWithPorts) -> Self
fn from(value: DeviceWithPorts) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DeviceWithPorts
impl PartialEq for DeviceWithPorts
Source§impl Serialize for DeviceWithPorts
impl Serialize for DeviceWithPorts
impl StructuralPartialEq for DeviceWithPorts
Auto Trait Implementations§
impl Freeze for DeviceWithPorts
impl RefUnwindSafe for DeviceWithPorts
impl Send for DeviceWithPorts
impl Sync for DeviceWithPorts
impl Unpin for DeviceWithPorts
impl UnwindSafe for DeviceWithPorts
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