pub fn with_progress<F>(&mut self, mut visitor: F)
    where
        F: FnMut(u64, ProgressType, &mut Progress),
    {
        // self.raft.prs.visit()
        self.raft.prs.visit(|id, pr| {
            let mut typ = ProgressType::default();
            if pr.is_learner {
                typ = ProgressType::Learner;
            }
            let mut pr = pr.clone();
            pr.inflights.reset();
            visitor(id, typ, &mut pr);
        });
    }
/// WithProgress is a helper to introspect the Progress for this node and its
/// peers.
WithProgress is a helper to introspect the Progress for this node and its
peers.
WithProgress is a helper to introspect the Progress for this node and its peers .
pub fn with_progress<F>(&mut self, mut visitor: F)
    where
        F: FnMut(u64, ProgressType, &mut Progress),
    {
        // self.raft.prs.visit()
        self.raft.prs.visit(|id, pr| {
            let mut typ = ProgressType::default();
            if pr.is_learner {
                typ = ProgressType::Learner;
            }
            let mut pr = pr.clone();
            pr.inflights.reset();
            visitor(id, typ, &mut pr);
        });
    }
pub fn with_progress < F > ( & mut self , mut visitor : F ) where F : FnMut ( u64 , ProgressType , & mut Progress ) , { // self.raft.prs.visit() self . raft . prs . visit ( | id , pr | { let mut typ = ProgressType :: default ( ) ; if pr . is_learner { typ = ProgressType :: Learner ; } let mut pr = pr . clone ( ) ; pr . inflights . reset ( ) ; visitor ( id , typ , & mut pr ) ; } ) ; }
WithProgress is a helper to introspect the Progress for this node and its
peers.
WithProgress is a helper to introspect the Progress for this node and its peers .
&mut self
visitor
F