pub struct TargetDetails {
pub ipv4: Ipv4Addr,
pub mac: MacAddr,
pub hostname: Option<String>,
pub vendor: Option<String>,
}Expand description
A target detail represents a single host on the local network with an IPv4
address and a linked MAC address. Hostnames are optional since some hosts
does not respond to the resolve call (or the numeric mode may be enabled).
Describes the public TargetDetails type.
Fields§
§ipv4: Ipv4AddrIPv4 address reported by the responding host.
mac: MacAddrHardware address reported by the responding host.
hostname: Option<String>Optional reverse-DNS name.
vendor: Option<String>Optional vendor name from the OUI database.
Auto Trait Implementations§
impl Freeze for TargetDetails
impl RefUnwindSafe for TargetDetails
impl Send for TargetDetails
impl Sync for TargetDetails
impl Unpin for TargetDetails
impl UnsafeUnpin for TargetDetails
impl UnwindSafe for TargetDetails
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