pub struct Hello {
pub protocol: u16,
pub engine: String,
pub data: u32,
pub mods: u32,
pub hooks: u32,
}Expand description
Who a game is: the protocol it speaks, and what its players must share.
Fields§
§protocol: u16The protocol version (PROTOCOL).
engine: StringThe engine’s name and version, for example Un-Banished 0.4.0-707cfea.
data: u32A fingerprint of the game data (the original’s packages).
mods: u32A fingerprint of the enabled mods, in their order.
hooks: u32A fingerprint of the rule hooks, in their order (0: none).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Hello
impl<'de> Deserialize<'de> for Hello
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
impl Eq for Hello
impl StructuralPartialEq for Hello
Auto Trait Implementations§
impl Freeze for Hello
impl RefUnwindSafe for Hello
impl Send for Hello
impl Sync for Hello
impl Unpin for Hello
impl UnsafeUnpin for Hello
impl UnwindSafe for Hello
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