Enum huawei_modem::at::AtResponse
source · 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
impl AtResponse
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 copy 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<AtResponse> for AtResponse
impl PartialEq<AtResponse> for AtResponse
source§fn eq(&self, other: &AtResponse) -> bool
fn eq(&self, other: &AtResponse) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for AtResponse
impl StructuralEq for AtResponse
impl StructuralPartialEq for AtResponse
Auto Trait Implementations§
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