#[non_exhaustive]pub enum MmiEvent {
Menu(MmiMenu),
List(MmiMenu),
Enquiry {
prompt: String,
blind: bool,
answer_len: u8,
},
Close,
}Expand description
MMI (man-machine interface) host events.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Menu(MmiMenu)
A menu() to display — the user picks one choice. Answer via
Driver::mmi_menu_answer.
List(MmiMenu)
A list() to display — informational (e.g. an entitlement listing); the
host typically dismisses it with
Driver::mmi_menu_answer(0).
Enquiry
An enquiry (text prompt) expecting an answer. Reply via
Driver::mmi_enquiry_answer or
Driver::mmi_cancel.
Fields
Close
The module closed the MMI dialog.
Trait Implementations§
impl Eq for MmiEvent
impl StructuralPartialEq for MmiEvent
Auto Trait Implementations§
impl Forget for MmiEvent
impl Freeze for MmiEvent
impl Move for MmiEvent
impl RefUnwindSafe for MmiEvent
impl Send for MmiEventwhere
RawVecInner: Send,
impl Sync for MmiEventwhere
RawVecInner: Sync,
impl Unpin for MmiEvent
impl UnsafeUnpin for MmiEventwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for MmiEventwhere
RawVecInner: UnwindSafe,
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