Struct EventReport
#[non_exhaustive]pub struct EventReport {
pub operating_mode: Option<OperatingMode>,
pub uim_state: Option<UimState>,
}Expand description
An event report (QMI_DMS_EVENT_REPORT_IND).
Receive it with Client::events. The report only
has the fields that changed. The crate decodes the operating mode and the
SIM state and ignores the other fields.
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.operating_mode: Option<OperatingMode>New operating mode.
uim_state: Option<UimState>New SIM state.
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 moreimpl Copy for EventReport
§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