Struct fast_protocol::datatypes::packets::LegacyPongPacket
source · pub struct LegacyPongPacket { /* private fields */ }Expand description
Struct for the legacy ping response
Implementations§
source§impl LegacyPongPacket
impl LegacyPongPacket
sourcepub fn new(
server_version: String,
motd: String,
current_players: u16,
max_players: u16
) -> Self
pub fn new( server_version: String, motd: String, current_players: u16, max_players: u16 ) -> Self
function to initialize a new instance of LegacyPingPacket
§Arguments
server_version - A String containing the version of the server
motd - A String of the motd
current_players - An u16 representing, how much players are currently connected to the
server
max_players - An u16 representing, how much players are allowed to join the server
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LegacyPongPacket
impl RefUnwindSafe for LegacyPongPacket
impl Send for LegacyPongPacket
impl Sync for LegacyPongPacket
impl Unpin for LegacyPongPacket
impl UnwindSafe for LegacyPongPacket
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