pub enum AdventureEventKind {
Bomb,
Snake,
Ufo,
Unknown,
}Expand description
Adventure Mode random-event kinds. Carried on ServerMessage::AdventureEvent.
The Unknown variant catches any future kind an older client doesn’t
recognize, so adding new kinds server-side is non-breaking. Clients
matching on this enum should always handle the Unknown arm (e.g.
by rendering a generic “Something happened!” toast).
Variants§
Bomb
3×3 blast centered on a random cell; those cells reroll.
Snake
Poisons a handful of cells for a couple of rounds.
Ufo
Steals all multipliers currently on the board.
Unknown
Forward-compat fallback. Serde decodes any unknown kind string
to this variant via #[serde(other)].
Trait Implementations§
Source§impl Clone for AdventureEventKind
impl Clone for AdventureEventKind
Source§fn clone(&self) -> AdventureEventKind
fn clone(&self) -> AdventureEventKind
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 AdventureEventKind
Source§impl Debug for AdventureEventKind
impl Debug for AdventureEventKind
Source§impl<'de> Deserialize<'de> for AdventureEventKind
impl<'de> Deserialize<'de> for AdventureEventKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AdventureEventKind
Source§impl PartialEq for AdventureEventKind
impl PartialEq for AdventureEventKind
Source§impl Serialize for AdventureEventKind
impl Serialize for AdventureEventKind
impl StructuralPartialEq for AdventureEventKind
Auto Trait Implementations§
impl Freeze for AdventureEventKind
impl RefUnwindSafe for AdventureEventKind
impl Send for AdventureEventKind
impl Sync for AdventureEventKind
impl Unpin for AdventureEventKind
impl UnsafeUnpin for AdventureEventKind
impl UnwindSafe for AdventureEventKind
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