Struct StatusChange
#[non_exhaustive]pub struct StatusChange {
pub card_status: Option<CardStatus>,
}Expand description
A card status change (QMI_UIM_STATUS_CHANGE_IND).
Receive it with Client::events. Enable it with
EventReg.
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.card_status: Option<CardStatus>The new card status, or None if the indication only has fields that
the crate doesn’t decode.
Trait Implementations§
§impl Clone for StatusChange
impl Clone for StatusChange
§fn clone(&self) -> StatusChange
fn clone(&self) -> StatusChange
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 StatusChange
impl Debug for StatusChange
impl Eq for StatusChange
§impl Indication for StatusChange
impl Indication for StatusChange
§impl PartialEq for StatusChange
impl PartialEq for StatusChange
impl StructuralPartialEq for StatusChange
§impl TryFrom<&Message> for StatusChange
impl TryFrom<&Message> for StatusChange
§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 StatusChange
impl RefUnwindSafe for StatusChange
impl Send for StatusChange
impl Sync for StatusChange
impl Unpin for StatusChange
impl UnsafeUnpin for StatusChange
impl UnwindSafe for StatusChange
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