pub struct PongPacket {
pub id: u64,
pub version: u32,
pub users: u32,
pub max_users: u32,
pub bandwidth: u32,
}Expand description
A pong packet sent to the client in reply to a previously received PingPacket.
Fields§
§id: u64Opaque, client-generated id.
Should match the value in the corresponding PingPacket.
version: u32Server version. E.g. 0x010300 for 1.3.0.
users: u32Current amount of users connected to the server.
max_users: u32Configured limit on the amount of users which can be connected to the server.
bandwidth: u32Maximum bandwidth for server-bound speech per client in bits per second
Trait Implementations§
Source§impl Clone for PongPacket
impl Clone for PongPacket
Source§fn clone(&self) -> PongPacket
fn clone(&self) -> PongPacket
Returns a duplicate of the value. Read more
1.0.0 · 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 PongPacket
impl Debug for PongPacket
Source§impl From<PongPacket> for [u8; 24]
impl From<PongPacket> for [u8; 24]
Source§fn from(packet: PongPacket) -> Self
fn from(packet: PongPacket) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PongPacket
impl PartialEq for PongPacket
Source§impl TryFrom<&[u8]> for PongPacket
impl TryFrom<&[u8]> for PongPacket
impl StructuralPartialEq for PongPacket
Auto Trait Implementations§
impl Freeze for PongPacket
impl RefUnwindSafe for PongPacket
impl Send for PongPacket
impl Sync for PongPacket
impl Unpin for PongPacket
impl UnwindSafe for PongPacket
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