pub enum MartUpdate {
Continue,
PlaySound(MartSound),
Exit,
}Expand description
Returned by MartState::update_frame to signal the caller.
Variants§
Continue
No special action — keep rendering.
PlaySound(MartSound)
Play the given sound cue (e.g. after a successful purchase).
Exit
The mart interaction is over — return to the previous screen.
Trait Implementations§
Source§impl Clone for MartUpdate
impl Clone for MartUpdate
Source§fn clone(&self) -> MartUpdate
fn clone(&self) -> MartUpdate
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 moreimpl Copy for MartUpdate
Source§impl Debug for MartUpdate
impl Debug for MartUpdate
impl Eq for MartUpdate
Source§impl PartialEq for MartUpdate
impl PartialEq for MartUpdate
impl StructuralPartialEq for MartUpdate
Auto Trait Implementations§
impl Freeze for MartUpdate
impl RefUnwindSafe for MartUpdate
impl Send for MartUpdate
impl Sync for MartUpdate
impl Unpin for MartUpdate
impl UnsafeUnpin for MartUpdate
impl UnwindSafe for MartUpdate
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