pub fn update_priorities(&mut self, self_node: &mut Node) {
        for (k, v) in self_node.subscriptions.iter_mut() {
            let degree = self
                .neighbors
                .entry(*k)
                .or_insert(TopicView::new())
                .degree();
            *v = match RINGS_MAX_VIEW_SIZE - degree {
                0 => InterestLevel::Low,
                1 => InterestLevel::Normal,
                _ => InterestLevel::High,
            };
        }
    }
/// update the associated node's subscription priorities
update the associated node's subscription priorities
update the associated node ' s subscription priorities
pub fn update_priorities(&mut self, self_node: &mut Node) {
        for (k, v) in self_node.subscriptions.iter_mut() {
            let degree = self
                .neighbors
                .entry(*k)
                .or_insert(TopicView::new())
                .degree();
            *v = match RINGS_MAX_VIEW_SIZE - degree {
                0 => InterestLevel::Low,
                1 => InterestLevel::Normal,
                _ => InterestLevel::High,
            };
        }
    }
pub fn update_priorities ( & mut self , self_node : & mut Node ) { for ( k , v ) in self_node . subscriptions . iter_mut ( ) { let degree = self . neighbors . entry ( * k ) . or_insert ( TopicView :: new ( ) ) . degree ( ) ; * v = match RINGS_MAX_VIEW_SIZE - degree { 0 => InterestLevel :: Low , 1 => InterestLevel :: Normal , _ => InterestLevel :: High , } ; } }
update the associated node's subscription priorities
update the associated node ' s subscription priorities
&mut self
self_node
&mut Node