/// Handles an error received as a result of operating a procedure.
Handles an error received as a result of operating a procedure.
Handles an error received as a result of operating a procedure .
fn procedure_error(&mut self, error: ProcedureError) {
        // TODO(fxbug.dev/73027): Right now, we only send an Error AT response to the peer.
        // Different error cases may warrant different SLC behavior. For example, errors
        // before the SLC is initialized may warrant complete channel shutdown. Fix this method
        // to make the error handling policy decisions.
        // Only log errors that are caused by the peer at debug level. Invalid messages received
        // from the peer is out of our control, so should not be logged at info level.
        // Debug logs more verbose error details.
        if error.caused_by_peer() {
            // This is most often not indicative of an error in the case of an `UnparsableHf` since
            // HFP peers frequently "test" for support of specific AT Commands by sending them.
            debug!("Sending error to peer in response to: {}", error);
        } else {
            info!("Sending error to peer in response to: {}", error.info());
        }
        self.queue_messages_to_peer(vec![at::Response::Error])
    }
fn procedure_error ( & mut self , error : ProcedureError ) { // TODO(fxbug.dev/73027): Right now, we only send an Error AT response to the peer. // Different error cases may warrant different SLC behavior. For example, errors // before the SLC is initialized may warrant complete channel shutdown. Fix this method // to make the error handling policy decisions. // Only log errors that are caused by the peer at debug level. Invalid messages received // from the peer is out of our control, so should not be logged at info level. // Debug logs more verbose error details. if error . caused_by_peer ( ) { // This is most often not indicative of an error in the case of an `UnparsableHf` since // HFP peers frequently "test" for support of specific AT Commands by sending them. debug ! ( " " error ) ; } else { info ! ( " " error info ( ) ) ; } self . queue_messages_to_peer ( vec ! [ at Response Error ] ) }
Handles an error received as a result of operating a procedure.
Handles an error received as a result of operating a procedure .
&mut self
error
ProcedureError