[][src]Struct teestatus::ServerInfo

pub struct ServerInfo {
    pub version: String,
    pub name: String,
    pub map: String,
    pub password: bool,
    pub game_type: String,
    pub player_count: i32,
    pub max_player_count: i32,
    pub client_count: i32,
    pub max_client_count: i32,
    pub mapcrc: i32,
    pub mapsize: i32,
    pub players: Vec<Player>,
}

Server info.

Fields

version: Stringname: Stringmap: Stringpassword: boolgame_type: Stringplayer_count: i32max_player_count: i32client_count: i32max_client_count: i32mapcrc: i32mapsize: i32players: Vec<Player>

Implementations

impl ServerInfo[src]

pub fn new(sock: &UdpSocket) -> Result<ServerInfo>[src]

The socket needs to be previously connected to a remote address.

Trait Implementations

impl Debug for ServerInfo[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,