pub enum RematchCountdownState {
Idle,
Active {
expires_at: DateTime<Utc>,
seconds_remaining: u32,
player_ids: Vec<i64>,
game_type: GameType,
},
Starting {
triggered_by: Option<i64>,
},
}Expand description
State of the auto-rematch countdown after a game ends.
When a game ends, players are automatically re-queued and a countdown begins. Any player can trigger an early start, or opt out to return to the lobby.
Variants§
Idle
No rematch countdown active
Active
Countdown is active - new game will start when it reaches 0
Fields
Starting
A player triggered an early start
Trait Implementations§
Source§impl Clone for RematchCountdownState
impl Clone for RematchCountdownState
Source§fn clone(&self) -> RematchCountdownState
fn clone(&self) -> RematchCountdownState
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 RematchCountdownState
impl Debug for RematchCountdownState
Source§impl Default for RematchCountdownState
impl Default for RematchCountdownState
Source§fn default() -> RematchCountdownState
fn default() -> RematchCountdownState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RematchCountdownState
impl<'de> Deserialize<'de> for RematchCountdownState
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 RematchCountdownState
impl RefUnwindSafe for RematchCountdownState
impl Send for RematchCountdownState
impl Sync for RematchCountdownState
impl Unpin for RematchCountdownState
impl UnwindSafe for RematchCountdownState
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