rust-gamedig/src/protocols/gamespy/mod.rs

26 lines
612 B
Rust

#[cfg(feature = "serde")]
use serde::{Deserialize, Serialize};
mod common;
/// The implementations.
pub mod protocols;
pub use protocols::*;
/// Versions of the gamespy protocol
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
#[derive(Debug, Clone, PartialEq)]
pub enum GameSpyVersion {
One,
Two,
Three,
}
/// Enum of versions and their ExtraResponse data
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
#[derive(Debug, Clone, PartialEq)]
pub enum VersionedExtraResponse {
One(one::ExtraResponse),
Two(two::ExtraResponse),
Three(three::ExtraResponse),
}