Enum twentyone::game::DealerRequest[][src]

pub enum DealerRequest {
    Bet,
    Play(usize),
    UpCard([char; 2]),
    HitCard([char; 2]),
    DealerHand(Vec<[char; 2]>),
    LowCards,
    Error(PlayerActionError),
}

Requests for the player from the dealer

Variants

Bet

Request a bet from the player

Play(usize)

Request a player to play a hand

Arguments

  • usize - The index of the hand to play
UpCard([char; 2])

The dealer’s up card

HitCard([char; 2])

The dealer’s hit card

DealerHand(Vec<[char; 2]>)

The dealer’s hand after they have finished playing

LowCards

The low card threshold was hit and a new shoe was created

An error with a returned PlayerAction

Arguments

  • PlayerActionError - More info on why the error occurred

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,