pub enum GameEvent {
BoardUpdated {
changed_positions: Vec<Pos>,
},
GameStatusChanged {
won: bool,
lost: bool,
},
GameInitialized {
width: usize,
height: usize,
bombs: usize,
},
ConnectionLost,
}Expand description
Events emitted by the minesweeper game
Variants§
BoardUpdated
The game board was updated with new cell states
GameStatusChanged
Game status changed (won/lost)
GameInitialized
Game was initialized or restarted
ConnectionLost
Connection was lost
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GameEvent
impl RefUnwindSafe for GameEvent
impl Send for GameEvent
impl Sync for GameEvent
impl Unpin for GameEvent
impl UnsafeUnpin for GameEvent
impl UnwindSafe for GameEvent
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