Struct airmash_protocol::server::ServerCustom [−][src]
pub struct ServerCustom {
pub ty: ServerCustomType,
pub data: String,
}End of game packet for CTF and BTR.
CTF
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).
BTR
TODO
Fields
ty: ServerCustomType
data: String
Trait Implementations
impl Clone for ServerCustom[src]
impl Clone for ServerCustomfn clone(&self) -> ServerCustom[src]
fn clone(&self) -> ServerCustomReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for ServerCustom[src]
impl Debug for ServerCustomfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl From<ServerCustom> for ServerPacket[src]
impl From<ServerCustom> for ServerPacketfn from(v: ServerCustom) -> Self[src]
fn from(v: ServerCustom) -> SelfPerforms the conversion.
Auto Trait Implementations
impl Send for ServerCustom
impl Send for ServerCustomimpl Sync for ServerCustom
impl Sync for ServerCustom