pub struct LegacyData {
pub protocol_version: i32,
pub minecraft_version: String,
pub motd: String,
pub online_players: u32,
pub max_players: u32,
}Expand description
Data returned by the pre-1.7 Java legacy ping (0xFE 0x01).
Placeholder — will be populated when src/protocol/java_legacy.rs is
implemented in a future release. All fields currently default to zero/empty.
Fields§
§protocol_version: i32Numeric Minecraft protocol version.
minecraft_version: StringGame version string, e.g. "1.6.4".
motd: StringServer MOTD / description.
online_players: u32Number of players currently online.
max_players: u32Server player capacity.
Trait Implementations§
Source§impl Clone for LegacyData
impl Clone for LegacyData
Source§fn clone(&self) -> LegacyData
fn clone(&self) -> LegacyData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LegacyData
impl Debug for LegacyData
Source§impl Default for LegacyData
impl Default for LegacyData
Source§fn default() -> LegacyData
fn default() -> LegacyData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LegacyData
impl<'de> Deserialize<'de> for LegacyData
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
Auto Trait Implementations§
impl Freeze for LegacyData
impl RefUnwindSafe for LegacyData
impl Send for LegacyData
impl Sync for LegacyData
impl Unpin for LegacyData
impl UnsafeUnpin for LegacyData
impl UnwindSafe for LegacyData
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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