End of game packet for CTF and BTR.
In CTF, the data of this packet contains
a JSON string with 3 fields.
w
: The id of the winning team.
b
: The bounty given to each player
of the winning team.
t
: The time (in seconds) that the
banner should remain on screen before
closing (unless closed by the player.)
In BTR, the data of this packet contains
a JSON string with 5 fields.
p
: The name of the winning player.
f
: The flag id of the winning player.
b
: The bounty given to the winning player.
k
: The number of kills that the winning player has.
t
: The time (in seconds) that the banner should
remain on the screen before closing (unless
closed by the player.)
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Serialize this value into the given Serde serializer. Read more
Deserialize this value from the given Serde deserializer. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static