pub fn merge(&mut self, other: ScanReport) {
        for (key, other_host) in other.hosts {
            if !self.hosts.contains_key(&key) {
                self.hosts.insert(key, other_host);
            } else if let Some(host) = self.hosts.get_mut(&key) {
                host.add_ports(other_host.ports());
                host.flags |= other_host.flags;
            }
        }
        
        self.services.extend(other.services);
    }
/// Merge with a given scan report.
Merge with a given scan report.
Merge with a given scan report .
pub fn merge(&mut self, other: ScanReport) {
        for (key, other_host) in other.hosts {
            if !self.hosts.contains_key(&key) {
                self.hosts.insert(key, other_host);
            } else if let Some(host) = self.hosts.get_mut(&key) {
                host.add_ports(other_host.ports());
                host.flags |= other_host.flags;
            }
        }
        self.services.extend(other.services);
    }
pub fn merge ( & mut self , other : ScanReport ) { for ( key , other_host ) in other . hosts { if ! self . hosts . contains_key ( & key ) { self . hosts . insert ( key , other_host ) ; } else if let Some ( host ) = self . hosts . get_mut ( & key ) { host . add_ports ( other_host . ports ( ) ) ; host . flags |= other_host . flags ; } } self . services . extend ( other . services ) ; }
Merge with a given scan report.
Merge with a given scan report .
&mut self
other
ScanReport
&mut self
other
ScanReport