mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-05-18 09:35:50 +00:00
[Protocol] Add PROPRIETARY to protocol enumeration (#59)
* [Protocol] Add CUSTOM to protocol enumeration * [Protocol] Rename CUSTOM to PROPRIETARY * [Protocol] Rename struct to ProprietaryProtocol and do the same thing to generic response * [Protocol] Revert proprietary change on generic response
This commit is contained in:
parent
b368877031
commit
c55254aaf6
3 changed files with 22 additions and 11 deletions
|
|
@ -6,6 +6,15 @@ use std::time::Duration;
|
|||
#[cfg(feature = "serde")]
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
/// Enumeration of all custom protocols
|
||||
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
pub enum ProprietaryProtocol {
|
||||
TheShip,
|
||||
FFOW,
|
||||
JC2MP,
|
||||
}
|
||||
|
||||
/// Enumeration of all valid protocol types
|
||||
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
|
|
@ -15,10 +24,7 @@ pub enum Protocol {
|
|||
Quake(quake::QuakeVersion),
|
||||
Valve(valve::SteamApp),
|
||||
#[cfg(not(feature = "no_games"))]
|
||||
TheShip,
|
||||
#[cfg(not(feature = "no_games"))]
|
||||
FFOW,
|
||||
JC2MP,
|
||||
PROPRIETARY(ProprietaryProtocol),
|
||||
}
|
||||
|
||||
/// All response types
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue