Enum at_commands::Response
source · pub enum Response {
Ok,
Error,
HardcodedError(HardcodedError),
CmeError(i64),
Success(Success),
RawBytes(Vec<u8>),
}
Expand description
Responses and indications.
Variants§
Ok
The success indication. Its format is described in HFP v1.8 Section 4.34.1, and it is used throughout the spec.
Error
The error indication. Its format is described in HFP v1.8 Section 4.34.1, and it is used throughout the spec.
HardcodedError(HardcodedError)
A set of hardcoded specific error indications. They are described in HFP v1.8 Section 4.34.2.
CmeError(i64)
Error codes used with the +CME ERROR indication. Described in HFP v1.8 4.34.2
Success(Success)
All other non-error responses. These are described throughout the HFP v1.8 spec.
RawBytes(Vec<u8>)
Just send the raw byte buffer as a response.