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>,
}Fields§
§version: String§name: String§map: String§password: bool§game_type: String§player_count: i32§max_player_count: i32§client_count: i32§max_client_count: i32§mapcrc: i32§mapsize: i32§players: Vec<Player>Implementations§
Source§impl ServerInfo
impl ServerInfo
Sourcepub fn new(sock: &UdpSocket) -> Result<ServerInfo>
pub fn new(sock: &UdpSocket) -> Result<ServerInfo>
The socket needs to be previously connected to a remote address.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ServerInfo
impl RefUnwindSafe for ServerInfo
impl Send for ServerInfo
impl Sync for ServerInfo
impl Unpin for ServerInfo
impl UnwindSafe for ServerInfo
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