pub enum AtResponse {
InformationResponse {
param: String,
response: AtValue,
},
ResultCode(AtResultCode),
Unknown(String),
}Expand description
One of possibly many response lines to an AT command.
One AtResponse always corresponds to one line of text.
Variants§
InformationResponse
An information response issued as a result of a command.
Corresponds to ‘:
ResultCode(AtResultCode)
An AT result code, indicating the completion of a command.
Unknown(String)
Some other unknown response.
Implementations§
Source§impl AtResponse
§enum Variant Predicates
impl AtResponse
§enum Variant Predicates
Sourcepub fn is_information_response(&self) -> bool
pub fn is_information_response(&self) -> bool
Is this AtResponse a InformationResponse?
Sourcepub fn is_result_code(&self) -> bool
pub fn is_result_code(&self) -> bool
Is this AtResponse a ResultCode?
Sourcepub fn is_unknown(&self) -> bool
pub fn is_unknown(&self) -> bool
Is this AtResponse a Unknown?
Trait Implementations§
Source§impl Clone for AtResponse
impl Clone for AtResponse
Source§fn clone(&self) -> AtResponse
fn clone(&self) -> AtResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AtResponse
impl Debug for AtResponse
Source§impl PartialEq for AtResponse
impl PartialEq for AtResponse
impl Eq for AtResponse
impl StructuralPartialEq for AtResponse
Auto Trait Implementations§
impl Freeze for AtResponse
impl RefUnwindSafe for AtResponse
impl Send for AtResponse
impl Sync for AtResponse
impl Unpin for AtResponse
impl UnwindSafe for AtResponse
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