Enum naia_shared::PacketType [−][src]
#[repr(u8)]
pub enum PacketType {
Data,
Heartbeat,
ClientChallengeRequest,
ServerChallengeResponse,
ClientConnectRequest,
ServerConnectResponse,
Ping,
Pong,
Unknown,
}
Expand description
An enum representing the different types of packets that can be sent/received
Variants
A packet containing Message/Entity/Component data
A packet sent to maintain the connection by preventing a timeout
An initial handshake message sent by the Client to the Server
The Server’s response to the Client’s initial handshake message
The final handshake message sent by the Client
The final handshake message sent by the Server, indicating that the connection has been established
A Ping message, used to calculate RTT. Must be responded to with a Pong message
A Pong message, used to calculate RTT. Must be the response to all Ping messages
An unknown packet type
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PacketType
impl Send for PacketType
impl Sync for PacketType
impl Unpin for PacketType
impl UnwindSafe for PacketType
Blanket Implementations
Mutably borrows from an owned value. Read more