pub enum PublicEvent {
Show 13 variants
Score {
user_id: String,
points: u8,
},
PlayCard {
user_id: String,
card: Card,
},
Trick {
user_id: String,
cards: [Card; 2],
},
Announce {
user_id: String,
announcement: Announcement,
},
Result {
winner: String,
points: u8,
ranked: HashMap<String, u8>,
},
FinalResult {
ranked: HashMap<String, u8>,
winner: String,
},
CloseTalon {
user_id: String,
},
TrumpChange(Option<Card>),
Active {
user_id: String,
},
Inactive {
user_id: String,
},
DeckCardCount(usize),
ReceiveCard {
user_id: String,
},
FinishedDistribution,
}
Variants§
Score
PlayCard
Trick
Announce
Result
FinalResult
CloseTalon
TrumpChange(Option<Card>)
Active
Inactive
DeckCardCount(usize)
ReceiveCard
FinishedDistribution
Trait Implementations§
Source§impl Clone for PublicEvent
impl Clone for PublicEvent
Source§fn clone(&self) -> PublicEvent
fn clone(&self) -> PublicEvent
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PublicEvent
impl Debug for PublicEvent
Source§impl<'de> Deserialize<'de> for PublicEvent
impl<'de> Deserialize<'de> for PublicEvent
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
Auto Trait Implementations§
impl Freeze for PublicEvent
impl RefUnwindSafe for PublicEvent
impl Send for PublicEvent
impl Sync for PublicEvent
impl Unpin for PublicEvent
impl UnwindSafe for PublicEvent
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