pub struct PlayerUpdate {
pub player_id: PeerId,
pub chips: Chips,
pub bet: Chips,
pub action: PlayerAction,
pub action_timer: Option<u16>,
pub cards: PlayerCards,
pub has_button: bool,
pub is_active: bool,
}Expand description
A player update details.
Fields§
§player_id: PeerIdThe player id.
chips: ChipsThe player chips.
bet: ChipsThe player current bet.
action: PlayerActionThe last player action.
action_timer: Option<u16>The player action timer.
cards: PlayerCardsThe player cards.
The player has the button.
is_active: boolThe player is active in the hand.
Trait Implementations§
Source§impl Debug for PlayerUpdate
impl Debug for PlayerUpdate
Source§impl<'de> Deserialize<'de> for PlayerUpdate
impl<'de> Deserialize<'de> for PlayerUpdate
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 PlayerUpdate
impl RefUnwindSafe for PlayerUpdate
impl Send for PlayerUpdate
impl Sync for PlayerUpdate
impl Unpin for PlayerUpdate
impl UnsafeUnpin for PlayerUpdate
impl UnwindSafe for PlayerUpdate
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