pub enum MatchState {
Start,
OfferCube(Player),
AwaitOfferAcceptance(Player),
AwaitBeaverAcceptance(Player),
PlayGame(Player),
End(Player),
}Expand description
All the possible states of a match.
Variants§
Start
Match is in start state. This state precludes some options such as offering the cube.
OfferCube(Player)
Player may offer the cube to the other player.
AwaitOfferAcceptance(Player)
Player is waiting for the cube to be accepted or rejected.
AwaitBeaverAcceptance(Player)
After a beaver, the original doubler can raccoon.
PlayGame(Player)
Who is playing the next game?
End(Player)
If the match has ended, this is the winner.
Trait Implementations§
Source§impl Clone for MatchState
impl Clone for MatchState
Source§fn clone(&self) -> MatchState
fn clone(&self) -> MatchState
Returns a duplicate 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 MatchState
impl Debug for MatchState
Source§impl Default for MatchState
impl Default for MatchState
Source§fn default() -> MatchState
fn default() -> MatchState
Returns the “default value” for a type. Read more
Source§impl PartialEq for MatchState
impl PartialEq for MatchState
impl StructuralPartialEq for MatchState
Auto Trait Implementations§
impl Freeze for MatchState
impl RefUnwindSafe for MatchState
impl Send for MatchState
impl Sync for MatchState
impl Unpin for MatchState
impl UnsafeUnpin for MatchState
impl UnwindSafe for MatchState
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