/// Get all active services.
///
/// Only static services or services with the last_seen timestamp from the
/// interval [now - ACTIVE_THRESHOLD, now] are considered active.
Get all active services.
Only static services or services with the last_seen timestamp from the
interval [now - ACTIVE_THRESHOLD, now] are considered active.
Get all active services . Only static services or services with the last_seen timestamp from the interval [ now - ACTIVE_THRESHOLD now ] are considered active .
pub fn active_services(&self) -> Vec<Service> {
        let mut res = vec![Service::ControlProtocol];
        for elem in &self.services {
            if elem.active {
                res.push(elem.service.clone());
            }
        }
        res
    }
pub fn active_services ( & self ) -> Vec < Service > { let mut res = vec ! [ Service ControlProtocol ] ; for elem in & self . services { if elem . active { res . push ( elem . service . clone ( ) ) ; } } res }
Get all active services.
Get all active services .
&self