fn report_connection_state(&self, flow_state: &FlowState) {
        let value = match flow_state.connection_state {
            ConnectionState::Listening => 1,
            ConnectionState::Connecting(_) => 2,
            ConnectionState::Connected(_) => 3,
        };
        self.control_plane_metrics
            .flow_state
            .with_label_values(&[&flow_state.flow_label, &flow_state.flow_tag_label])
            .set(value);
    }
/// Reports the state of a flow to metrics
Reports the state of a flow to metrics
Reports the state of a flow to metrics
fn report_connection_state(&self, flow_state: &FlowState) {
        let value = match flow_state.connection_state {
            ConnectionState::Listening => 1,
            ConnectionState::Connecting(_) => 2,
            ConnectionState::Connected(_) => 3,
        };
        self.control_plane_metrics
            .flow_state
            .with_label_values(&[&flow_state.flow_label, &flow_state.flow_tag_label])
            .set(value);
    }
fn report_connection_state ( & self , flow_state : & FlowState ) { let value = match flow_state . connection_state { ConnectionState :: Listening => 1 , ConnectionState :: Connecting ( _ ) => 2 , ConnectionState :: Connected ( _ ) => 3 , } ; self . control_plane_metrics . flow_state . with_label_values ( & [ & flow_state . flow_label , & flow_state . flow_tag_label ] ) . set ( value ) ; }
Reports the state of a flow to metrics
Reports the state of a flow to metrics
&self
flow_state
&FlowState
&self
flow_state
&FlowState