pub fn state_info(&self) {
        let mut channel = self.state_machine_info.clone();
        self.executor.spawn(async move {
            match channel.recv().await {
                None => {
                    info!(
                        target: LOG_TARGET,
                        "Error communicating with state machine, channel could have been closed"
                    );
                },
                Some(data) => println!("Current state machine state:\n{}", data),
            };
        });
    }
/// Function to process the get-state-info command
Function to process the get-state-info command
Function to process the get - state - info command
pub fn state_info(&self) {
        let mut channel = self.state_machine_info.clone();
        self.executor.spawn(async move {
            match channel.recv().await {
                None => {
                    info!(
                        target: LOG_TARGET,
                        "Error communicating with state machine, channel could have been closed"
                    );
                },
                Some(data) => println!("Current state machine state:\n{}", data),
            };
        });
    }
pub fn state_info ( & self ) { let mut channel = self . state_machine_info . clone ( ) ; self . executor . spawn ( async move { match channel . recv ( ) . await { None => { info ! ( target LOG_TARGET " " ) ; } , Some ( data ) => println ! ( " \n " data ) , } ; } ) ; }
Function to process the get-state-info command
Function to process the get - state - info command
&self
&self