pub fn fill_active_view(&mut self) {
        if !self.is_active_view_full() {
            if let Some(node) = self.select_random_from_passive_view() {
                let high_priority = self.active_view.is_empty();
                let message = ProtocolMessage::neighbor(&self.id, high_priority);
                send(&mut self.actions, node, message);
            }
        }
    }
/// Promotes a node from the passive view to the active view if the latter is not full.
///
/// This method should be invoked periodically to keep the active view full.
Promotes a node from the passive view to the active view if the latter is not full.
This method should be invoked periodically to keep the active view full.
Promotes a node from the passive view to the active view if the latter is not full . This method should be invoked periodically to keep the active view full .
pub fn fill_active_view(&mut self) {
        if !self.is_active_view_full() {
            if let Some(node) = self.select_random_from_passive_view() {
                let high_priority = self.active_view.is_empty();
                let message = ProtocolMessage::neighbor(&self.id, high_priority);
                send(&mut self.actions, node, message);
            }
        }
    }
pub fn fill_active_view ( & mut self ) { if ! self . is_active_view_full ( ) { if let Some ( node ) = self . select_random_from_passive_view ( ) { let high_priority = self . active_view . is_empty ( ) ; let message = ProtocolMessage :: neighbor ( & self . id , high_priority ) ; send ( & mut self . actions , node , message ) ; } } }
Promotes a node from the passive view to the active view if the latter is not full.
Promotes a node from the passive view to the active view if the latter is not full .
&mut self
&mut self