pub enum ServerType {
GameType(GameType),
LobbyType(LobbyType),
Unknown,
}Variants§
Implementations§
Source§impl ServerType
impl ServerType
pub fn get_game_type(&self) -> Option<&GameType>
pub fn get_lobby_type(&self) -> Option<&LobbyType>
Trait Implementations§
Source§impl Debug for ServerType
impl Debug for ServerType
Source§impl<'de> Deserialize<'de> for ServerType
impl<'de> Deserialize<'de> for ServerType
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 ServerType
impl RefUnwindSafe for ServerType
impl Send for ServerType
impl Sync for ServerType
impl Unpin for ServerType
impl UnwindSafe for ServerType
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