pub fn config_state(&self) -> ConfState {
        let mut conf_state = ConfState::new();
        conf_state.set_voters(self.config.voters.incoming.as_slice());
        conf_state.set_voters_outgoing(self.config.voters.outgoing.as_slice());
        conf_state.set_learners(
            self.config
                .learners
                .iter()
                .map(|learner| *learner)
                .collect(),
        );
        conf_state.set_learners_next(
            self.config
                .learners_next
                .iter()
                .map(|learner| *learner)
                .collect(),
        );
        conf_state.set_auto_leave(self.config.auto_leave);
        conf_state
    }
// ConfState returns a ConfState representing the active configuration.
ConfState returns a ConfState representing the active configuration.
ConfState returns a ConfState representing the active configuration .
pub fn config_state(&self) -> ConfState {
        let mut conf_state = ConfState::new();
        conf_state.set_voters(self.config.voters.incoming.as_slice());
        conf_state.set_voters_outgoing(self.config.voters.outgoing.as_slice());
        conf_state.set_learners(
            self.config
                .learners
                .iter()
                .map(|learner| *learner)
                .collect(),
        );
        conf_state.set_learners_next(
            self.config
                .learners_next
                .iter()
                .map(|learner| *learner)
                .collect(),
        );
        conf_state.set_auto_leave(self.config.auto_leave);
        conf_state
    }
pub fn config_state ( & self ) -> ConfState { let mut conf_state = ConfState :: new ( ) ; conf_state . set_voters ( self . config . voters . incoming . as_slice ( ) ) ; conf_state . set_voters_outgoing ( self . config . voters . outgoing . as_slice ( ) ) ; conf_state . set_learners ( self . config . learners . iter ( ) . map ( | learner | * learner ) . collect ( ) , ) ; conf_state . set_learners_next ( self . config . learners_next . iter ( ) . map ( | learner | * learner ) . collect ( ) , ) ; conf_state . set_auto_leave ( self . config . auto_leave ) ; conf_state }
ConfState returns a ConfState representing the active configuration.
ConfState returns a ConfState representing the active configuration .
&self