pub struct AtCommandResult {
pub command: String,
pub response: String,
pub raw: Vec<u8>,
pub matched: ExchangeMatch,
pub lines: Vec<String>,
pub status: AtParseStatus,
pub solicited_body: Vec<String>,
pub urc_lines: Vec<String>,
pub timed_out: bool,
}Expand description
AT command result returned by native at / at_phases / send_sms_pdu.
Fields§
§command: String§response: String§raw: Vec<u8>§matched: ExchangeMatch§lines: Vec<String>§status: AtParseStatus§solicited_body: Vec<String>§urc_lines: Vec<String>§timed_out: boolImplementations§
Source§impl AtCommandResult
impl AtCommandResult
pub fn from_exchange(command: String, exchange: ExchangeResponse) -> Self
pub fn failed(command: String, reason: String) -> Self
Trait Implementations§
Source§impl Clone for AtCommandResult
impl Clone for AtCommandResult
Source§impl Debug for AtCommandResult
impl Debug for AtCommandResult
Source§impl<'de> Deserialize<'de> for AtCommandResult
impl<'de> Deserialize<'de> for AtCommandResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for AtCommandResult
impl Freeze for AtCommandResult
impl RefUnwindSafe for AtCommandResult
impl Send for AtCommandResult
impl Sync for AtCommandResult
impl Unpin for AtCommandResult
impl UnsafeUnpin for AtCommandResult
impl UnwindSafe for AtCommandResult
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