Enum rs_pixel::types::server_type::ServerType
source · [−]Variants
GameType(GameType)
LobbyType(LobbyType)
Unknown
Implementations
sourceimpl ServerType
impl ServerType
pub fn get_game_type(&self) -> Option<&GameType>
pub fn get_lobby_type(&self) -> Option<&LobbyType>
Trait Implementations
sourceimpl Debug for ServerType
impl Debug for ServerType
sourceimpl<'de> Deserialize<'de> for ServerType
impl<'de> Deserialize<'de> for ServerType
sourcefn 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
sourceimpl Serialize for ServerType
impl Serialize for ServerType
Auto Trait Implementations
impl RefUnwindSafe for ServerType
impl Send for ServerType
impl Sync for ServerType
impl Unpin for ServerType
impl UnwindSafe for ServerType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more