pub enum DealerRequest {
Bet,
Play(usize),
UpCard([char; 2]),
HitCard([char; 2]),
DealerHand(Vec<[char; 2]>),
LowCards,
Error(PlayerActionError),
}Expand description
Requests for the player from the dealer
Variants§
Bet
Request a bet from the player
Play(usize)
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
Error(PlayerActionError)
An error with a returned PlayerAction
§Arguments
PlayerActionError- More info on why the error occurred
Auto Trait Implementations§
impl Freeze for DealerRequest
impl RefUnwindSafe for DealerRequest
impl Send for DealerRequest
impl Sync for DealerRequest
impl Unpin for DealerRequest
impl UnsafeUnpin for DealerRequest
impl UnwindSafe for DealerRequest
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