pub fn select_gossips(&mut self, gossip_recipient: &Node) -> BTreeMap<Id, Node> {
        let mut gossips = BTreeMap::new();

        self.our_node.last_gossip = std::time::SystemTime::now();

        for module in self.modules.values() {
            gossips.extend(module.select_gossips(
                &self.our_node,
                gossip_recipient,
                &self.known_nodes,
            ));
        }
        gossips
    }
/// select the gossips to share with the given Node.
///
/// This function requires the Topology object to be mutable because we will update
/// timestamp regarding the last time we gossiped. This information can be useful
/// for other nodes
///
select the gossips to share with the given Node.
This function requires the Topology object to be mutable because we will update
timestamp regarding the last time we gossiped. This information can be useful
for other nodes
select the gossips to share with the given Node . This function requires the Topology object to be mutable because we will update timestamp regarding the last time we gossiped . This information can be useful for other nodes
pub fn select_gossips(&mut self, gossip_recipient: &Node) -> BTreeMap<Id, Node> {
        let mut gossips = BTreeMap::new();
        self.our_node.last_gossip = std::time::SystemTime::now();
        for module in self.modules.values() {
            gossips.extend(module.select_gossips(
                &self.our_node,
                gossip_recipient,
                &self.known_nodes,
            ));
        }
        gossips
    }
pub fn select_gossips ( & mut self , gossip_recipient : & Node ) -> BTreeMap < Id , Node > { let mut gossips = BTreeMap :: new ( ) ; self . our_node . last_gossip = std :: time :: SystemTime :: now ( ) ; for module in self . modules . values ( ) { gossips . extend ( module . select_gossips ( & self . our_node , gossip_recipient , & self . known_nodes , ) ) ; } gossips }
select the gossips to share with the given Node.
select the gossips to share with the given Node .
&mut self
gossip_recipient
&Node