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, ) -> AtCommandResult
pub fn failed(command: String, reason: String) -> AtCommandResult
Trait Implementations§
Source§impl Clone for AtCommandResult
impl Clone for AtCommandResult
Source§fn clone(&self) -> AtCommandResult
fn clone(&self) -> AtCommandResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 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<AtCommandResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AtCommandResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for AtCommandResult
impl Serialize for AtCommandResult
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Forget for AtCommandResult
impl Freeze for AtCommandResult
impl Move 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