fn match_command_to_procedure(
        &self,
        command: &at::Command,
    ) -> Result<ProcedureMarker, ProcedureError> {
        // If we haven't initialized the SLC yet, the only valid procedure to match is
        // the SLCI Procedure.
        if !self.state.initialized {
            return Ok(ProcedureMarker::SlcInitialization);
        }

        // Otherwise, try to match it to a procedure - it must be a non SLCI command since
        // the channel has already been initialized.
        match ProcedureMarker::match_command(command) {
            Ok(ProcedureMarker::SlcInitialization) => {
                warn!("Received unexpected SLCI command after SLC initialization: {:?}", command);
                Err(command.into())
            }
            res => res,
        }
    }
/// Matches the incoming message to a procedure. Returns the procedure identifier
/// for the given `command` or Error if the command couldn't be matched.
Matches the incoming message to a procedure. Returns the procedure identifier
for the given `command` or Error if the command couldn't be matched.
Matches the incoming message to a procedure . Returns the procedure identifier for the given ` command ` or Error if the command couldn ' t be matched .
fn match_command_to_procedure(
        &self,
        command: &at::Command,
    ) -> Result<ProcedureMarker, ProcedureError> {
        // If we haven't initialized the SLC yet, the only valid procedure to match is
        // the SLCI Procedure.
        if !self.state.initialized {
            return Ok(ProcedureMarker::SlcInitialization);
        }
        // Otherwise, try to match it to a procedure - it must be a non SLCI command since
        // the channel has already been initialized.
        match ProcedureMarker::match_command(command) {
            Ok(ProcedureMarker::SlcInitialization) => {
                warn!("Received unexpected SLCI command after SLC initialization: {:?}", command);
                Err(command.into())
            }
            res => res,
        }
    }
fn match_command_to_procedure ( & self , command : & at :: Command , ) -> Result < ProcedureMarker , ProcedureError > { // If we haven't initialized the SLC yet, the only valid procedure to match is // the SLCI Procedure. if ! self . state . initialized { return Ok ( ProcedureMarker :: SlcInitialization ) ; } // Otherwise, try to match it to a procedure - it must be a non SLCI command since // the channel has already been initialized. match ProcedureMarker :: match_command ( command ) { Ok ( ProcedureMarker :: SlcInitialization ) => { warn ! ( " " command ) ; Err ( command . into ( ) ) } res => res , } }
Matches the incoming message to a procedure.
Matches the incoming message to a procedure .
&self
command
&at::Command
&self
command
&at::Command