#[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 Freeze for MmiEvent
impl RefUnwindSafe for MmiEvent
impl Send for MmiEvent
impl Sync for MmiEvent
impl Unpin for MmiEvent
impl UnsafeUnpin for MmiEvent
impl UnwindSafe for MmiEvent
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