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.
Trait Implementations§
impl StructuralPartialEq for Response
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)