pub struct ServerInfoMessage {Show 16 fields
pub version: u16,
pub server_count: u32,
pub stv: bool,
pub dedicated: bool,
pub max_crc: u32,
pub max_classes: u16,
pub map_hash: [u8; 16],
pub player_slot: u8,
pub max_player_count: u8,
pub interval_per_tick: f32,
pub platform: String,
pub game: String,
pub map: String,
pub skybox: String,
pub server_name: String,
pub replay: bool,
}
Fields§
§version: u16
§server_count: u32
§stv: bool
§dedicated: bool
§max_crc: u32
§max_classes: u16
§map_hash: [u8; 16]
§player_slot: u8
§max_player_count: u8
§interval_per_tick: f32
§platform: String
§game: String
§map: String
§skybox: String
§server_name: String
§replay: bool
Trait Implementations§
Source§impl Clone for ServerInfoMessage
impl Clone for ServerInfoMessage
Source§fn clone(&self) -> ServerInfoMessage
fn clone(&self) -> ServerInfoMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ServerInfoMessage
impl Debug for ServerInfoMessage
Source§impl<'de> Deserialize<'de> for ServerInfoMessage
impl<'de> Deserialize<'de> for ServerInfoMessage
Source§fn 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
Source§impl Encode for ServerInfoMessage
impl Encode for ServerInfoMessage
fn encode( &self, stream: &mut BitWriteStream<'_, LittleEndian>, state: &ParserState, ) -> Result<()>
Source§impl<'a> Parse<'a> for ServerInfoMessage
impl<'a> Parse<'a> for ServerInfoMessage
Source§impl<'a> ParseBitSkip<'a> for ServerInfoMessage
impl<'a> ParseBitSkip<'a> for ServerInfoMessage
fn parse_skip(stream: &mut Stream<'a>, state: &ParserState) -> Result<()>
Source§impl PartialEq for ServerInfoMessage
impl PartialEq for ServerInfoMessage
Source§impl Serialize for ServerInfoMessage
impl Serialize for ServerInfoMessage
impl StructuralPartialEq for ServerInfoMessage
Auto Trait Implementations§
impl Freeze for ServerInfoMessage
impl RefUnwindSafe for ServerInfoMessage
impl Send for ServerInfoMessage
impl Sync for ServerInfoMessage
impl Unpin for ServerInfoMessage
impl UnwindSafe for ServerInfoMessage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more