Enum xash3d_protocol::server::ServerType
source · #[repr(u8)]pub enum ServerType {
Dedicated = 0,
Local = 1,
Proxy = 2,
Unknown = 3,
}Expand description
Game server type.
Variants§
Dedicated = 0
Dedicated server.
Local = 1
Game client.
Proxy = 2
Spectator proxy.
Unknown = 3
Unknown.
Trait Implementations§
source§impl Clone for ServerType
impl Clone for ServerType
source§fn clone(&self) -> ServerType
fn clone(&self) -> ServerType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ServerType
impl Debug for ServerType
source§impl Default for ServerType
impl Default for ServerType
source§impl Display for ServerType
impl Display for ServerType
source§impl PartialEq for ServerType
impl PartialEq for ServerType
source§fn eq(&self, other: &ServerType) -> bool
fn eq(&self, other: &ServerType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl TryFrom<&[u8]> for ServerType
impl TryFrom<&[u8]> for ServerType
impl Copy for ServerType
impl StructuralPartialEq 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§
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