Enum ScreenOpening
#[non_exhaustive]pub enum ScreenOpening {
Cancel,
ModScreen,
}Expand description
What a mod answers to screen_opening (ScreenEvent.Opening): the screen
that was about to open does not. The first mod to answer wins.
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.
Cancel
Opening.setCanceled(true): the current screen stays open.
ModScreen
Opening.setNewScreen(..): the answering mod’s own screen
(Host::mod_screen_open) opens instead, if it can open there (not over
the title screen, a book, a prompt or while a world loads; the
screen that was about to open does then).
Trait Implementations§
§impl Clone for ScreenOpening
impl Clone for ScreenOpening
§fn clone(&self) -> ScreenOpening
fn clone(&self) -> ScreenOpening
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 ScreenOpening
impl Debug for ScreenOpening
impl Eq for ScreenOpening
§impl PartialEq for ScreenOpening
impl PartialEq for ScreenOpening
impl StructuralPartialEq for ScreenOpening
Auto Trait Implementations§
impl Freeze for ScreenOpening
impl RefUnwindSafe for ScreenOpening
impl Send for ScreenOpening
impl Sync for ScreenOpening
impl Unpin for ScreenOpening
impl UnsafeUnpin for ScreenOpening
impl UnwindSafe for ScreenOpening
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