pub struct GetServerInfoResponse<T> {
pub gamedir: T,
pub map: T,
pub host: T,
pub protocol: u8,
pub numcl: u8,
pub maxcl: u8,
pub dm: bool,
pub team: bool,
pub coop: bool,
pub password: bool,
pub dedicated: bool,
}Expand description
Game server information to game clients.
Fields§
§gamedir: TServer is running the specified modification.
§Examples:
- valve - Half-Life
- cstrike - Counter-Strike 1.6
- portal - Portal
- dod - Day of Defeat
- left4dead - Left 4 Dead
map: TServer is running map.
host: TServer title.
protocol: u8Server protocol version.
numcl: u8Current number of players on the server.
maxcl: u8Maximum number of players on the server.
dm: boolServer is running a deathmatch game mode.
team: boolPlayers are grouped into teams.
coop: boolServer is running in a co-op game mode.
password: boolServer is behind a password.
dedicated: boolServer is dedicated.
Implementations§
Source§impl<'a, T> GetServerInfoResponse<T>where
T: 'a + Default + GetKeyValue<'a>,
impl<'a, T> GetServerInfoResponse<T>where
T: 'a + Default + GetKeyValue<'a>,
Trait Implementations§
Source§impl<T: Clone> Clone for GetServerInfoResponse<T>
impl<T: Clone> Clone for GetServerInfoResponse<T>
Source§fn clone(&self) -> GetServerInfoResponse<T>
fn clone(&self) -> GetServerInfoResponse<T>
Returns a duplicate 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<T: Debug> Debug for GetServerInfoResponse<T>
impl<T: Debug> Debug for GetServerInfoResponse<T>
Source§impl<T: Default> Default for GetServerInfoResponse<T>
impl<T: Default> Default for GetServerInfoResponse<T>
Source§fn default() -> GetServerInfoResponse<T>
fn default() -> GetServerInfoResponse<T>
Returns the “default value” for a type. Read more
Source§impl<T: PartialEq> PartialEq for GetServerInfoResponse<T>
impl<T: PartialEq> PartialEq for GetServerInfoResponse<T>
impl<T> StructuralPartialEq for GetServerInfoResponse<T>
Auto Trait Implementations§
impl<T> Freeze for GetServerInfoResponse<T>where
T: Freeze,
impl<T> RefUnwindSafe for GetServerInfoResponse<T>where
T: RefUnwindSafe,
impl<T> Send for GetServerInfoResponse<T>where
T: Send,
impl<T> Sync for GetServerInfoResponse<T>where
T: Sync,
impl<T> Unpin for GetServerInfoResponse<T>where
T: Unpin,
impl<T> UnwindSafe for GetServerInfoResponse<T>where
T: UnwindSafe,
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