Struct huawei_modem::cmd::sms::SmsMessage
source · pub struct SmsMessage {
pub status: MessageStatus,
pub index: u32,
pub raw_pdu: Vec<u8>,
pub pdu: DeliverPdu,
}
Expand description
An SMS message, received from a listing.
Fields§
§status: MessageStatus
The message status (read, unread, etc.)
index: u32
The message’s index in the modem’s memory (useful if you want to delete it later).
raw_pdu: Vec<u8>
The message’s raw SMS PDU.
Most implementations won’t want to care about this, unless you want to store it somewhere verbatim for whatever reason and parse it again later.
pdu: DeliverPdu
The decoded SMS PDU (Protocol Data Unit).
This contains everything you probably want to get out of the message, like the sender and
the message text. Have a look at the documentation on DeliverPdu
to figure out how to get
stuff out of it!
Trait Implementations§
source§impl Clone for SmsMessage
impl Clone for SmsMessage
source§fn clone(&self) -> SmsMessage
fn clone(&self) -> SmsMessage
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 moreAuto Trait Implementations§
impl RefUnwindSafe for SmsMessage
impl Send for SmsMessage
impl Sync for SmsMessage
impl Unpin for SmsMessage
impl UnwindSafe for SmsMessage
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