pub struct MnsEvent { /* private fields */ }Expand description
Fields absent in the <event> element are None.
Implementations§
Source§impl MnsEvent
impl MnsEvent
Sourcepub const fn event_type(&self) -> EventType
pub const fn event_type(&self) -> EventType
Governs which optional fields are present.
Sourcepub fn handle(&self) -> Option<&str>
pub fn handle(&self) -> Option<&str>
Opaque message handle assigned by the device; absent for MemoryFull/MemoryAvailable.
Sourcepub fn folder(&self) -> Option<&str>
pub fn folder(&self) -> Option<&str>
Current folder path, e.g. TELECOM/MSG/INBOX; absent for memory events.
Sourcepub fn old_folder(&self) -> Option<&str>
pub fn old_folder(&self) -> Option<&str>
Previous folder path; present only for MessageShift.
Trait Implementations§
impl Eq for MnsEvent
impl StructuralPartialEq for MnsEvent
Auto Trait Implementations§
impl Freeze for MnsEvent
impl RefUnwindSafe for MnsEvent
impl Send for MnsEvent
impl Sync for MnsEvent
impl Unpin for MnsEvent
impl UnsafeUnpin for MnsEvent
impl UnwindSafe for MnsEvent
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