Struct EventReport
#[non_exhaustive]pub struct EventReport {
pub stored: Option<StoredMessage>,
pub transferred: Option<TransferredMessage>,
pub mode: Option<MessageMode>,
pub smsc_address: Option<Bytes>,
pub on_ims: Option<bool>,
}Expand description
An event report (QMI_WMS_EVENT_REPORT_IND).
Receive it with Client::events.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.stored: Option<StoredMessage>A message that the modem stored.
transferred: Option<TransferredMessage>A message that the modem passed on without storing it.
mode: Option<MessageMode>Mode of the message.
smsc_address: Option<Bytes>SMSC address of the message: the type of address followed by the BCD digits.
on_ims: Option<bool>Whether the message arrived over IMS.
Trait Implementations§
§impl Clone for EventReport
impl Clone for EventReport
§fn clone(&self) -> EventReport
fn clone(&self) -> EventReport
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 more§impl Debug for EventReport
impl Debug for EventReport
§impl Default for EventReport
impl Default for EventReport
§fn default() -> EventReport
fn default() -> EventReport
Returns the “default value” for a type. Read more
impl Eq for EventReport
§impl Indication for EventReport
impl Indication for EventReport
§impl PartialEq for EventReport
impl PartialEq for EventReport
impl StructuralPartialEq for EventReport
§impl TryFrom<&Message> for EventReport
impl TryFrom<&Message> for EventReport
§type Error = DecodeError
type Error = DecodeError
The type returned in the event of a conversion error.
§fn try_from(message: &Message) -> Result<Self, DecodeError>
fn try_from(message: &Message) -> Result<Self, DecodeError>
Performs the conversion.
Auto Trait Implementations§
impl !Freeze for EventReport
impl RefUnwindSafe for EventReport
impl Send for EventReport
impl Sync for EventReport
impl Unpin for EventReport
impl UnsafeUnpin for EventReport
impl UnwindSafe for EventReport
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