Enum raknet::message::ID

source ·
#[repr(u8)]
pub enum ID {
Show 83 variants InternalPing, Ping, PingOpenConnections, ConnectedPong, ConnectionRequest, SecuredConnectionResponse, SecuredConnectionConfirmation, RPCMapping, DetectLostConnection, OpenConnectionRequest, OpenConnectionReply, RPC, RPCReply, OutOfBandInternal, ConnectionRequestAccepted, ConnectionAttemptFailed, AlreadyConnected, NewIncomingConnection, NoFreeIncomingConnections, DisconnectionNotification, ConnectionLost, RSAPublicKeyMismatch, ConnectionBanned, InvalidPassword, ModifiedPacket, Timestamp, Pong, AdvertiseSystem, RemoteDisconnectNotification, RemoteConnectionLost, RemoteNewIncomingConnection, DownloadProgress, FileListTransferHeader, FileListTransferFile, DDTDownloadRequest, TransportString, ReplicaManagerConstruction, ReplicaManagerDestruction, ReplicaManagerScopeChange, ReplicaManagerSerialize, ReplicaManagerDownloadStarted, ReplicaManagerDownloadComplete, ConnectionGraphRequest, ConnectionGraphReply, ConnectionGraphUpdate, ConnectionGraphNewConnection, ConnectionGraphConnectionLost, ConnectionGraphDisconnectionNotification, RouteAndMulticast, RakVoiceOpenChannelRequest, RakVoiceOpenChannelReply, RakVoiceCloseChannel, RakVoiceData, AutopatcherGetChangelistSinceDate, AutopatcherCreatingList, AutopatcherDeletionList, AutopatcherGetPatch, AutopatcherPatchList, AutopatcherRepositoryFatalError, AutopatcherFinishedInternal, AutopatcherFinished, AutopatcherRestartApplication, NATPunchthroughRequest, NATTargetNotConnected, NATTargetConnectionLost, NATConnectAtTime, NATSendOfflineMessageAtTime, NATInProgress, DatabaseQueryRequest, DatabaseUpdateRow, DatabaseRemoveRow, DatabaseQueryReply, DatabaseUnknownTable, DatabaseIncorrectPassword, ReadyEventSet, ReadyEventUnset, ReadyEventAllSet, ReadyEventQuery, LobbyGeneral, AutoRPCCall, AutoRPCRemoteIndex, AutoRPCUnknownRemoteIndex, RPCRemoteError,
}

Variants§

§

InternalPing

These types are never returned to the user. Ping from a connected system. Update timestamps (internal use only)

§

Ping

Ping from an unconnected system. Reply but do not update timestamps. (internal use only)

§

PingOpenConnections

Ping from an unconnected system. Only reply if we have open connections. Do not update timestamps. (internal use only)

§

ConnectedPong

Pong from a connected system. Update timestamps (internal use only)

§

ConnectionRequest

Asking for a new connection (internal use only)

§

SecuredConnectionResponse

Connecting to a secured server/peer (internal use only)

§

SecuredConnectionConfirmation

Connecting to a secured server/peer (internal use only)

§

RPCMapping

Packet that tells us the packet contains an integer ID to name mapping for the remote system (internal use only)

§

DetectLostConnection

A reliable packet to detect lost connections (internal use only)

§

OpenConnectionRequest

Offline message so we know when to reset and start a new connection (internal use only)

§

OpenConnectionReply

Offline message response so we know when to reset and start a new connection (internal use only)

§

RPC

Remote procedure call (internal use only)

§

RPCReply

Remote procedure call reply, for RPCs that return data (internal use only)

§

OutOfBandInternal

RakPeer - Same as ID_ADVERTISE_SYSTEM, but intended for internal use rather than being passed to the user. Second byte indicates type. Used currently for NAT punchthrough for receiver port advertisement. See ID_NAT_ADVERTISE_RECIPIENT_PORT

§

ConnectionRequestAccepted

RakPeer - In a client/server environment, our connection request to the server has been accepted.

§

ConnectionAttemptFailed

RakPeer - Sent to the player when a connection request cannot be completed due to inability to connect.

§

AlreadyConnected

RakPeer - Sent a connect request to a system we are currently connected to.

§

NewIncomingConnection

RakPeer - A remote system has successfully connected.

§

NoFreeIncomingConnections

RakPeer - The system we attempted to connect to is not accepting new connections.

§

DisconnectionNotification

RakPeer - The system specified in Packet::systemAddress has disconnected from us. For the client, this would mean the server has shutdown.

§

ConnectionLost

RakPeer - Reliable packets cannot be delivered to the system specified in Packet::systemAddress. The connection to that system has been closed.

§

RSAPublicKeyMismatch

RakPeer - We preset an RSA public key which does not match what the system we connected to is using.

§

ConnectionBanned

RakPeer - We are banned from the system we attempted to connect to.

§

InvalidPassword

RakPeer - The remote system is using a password and has refused our connection because we did not set the correct password.

§

ModifiedPacket

RakPeer - A packet has been tampered with in transit. The sender is contained in Packet::systemAddress.

§

Timestamp

RakPeer - The four bytes following this byte represent an unsigned int which is automatically modified by the difference in system times between the sender and the recipient. Requires that you call SetOccasionalPing.

§

Pong

RakPeer - Pong from an unconnected system. First byte is ID_PONG, second sizeof(RakNetTime) bytes is the ping, following bytes is system specific enumeration data.

§

AdvertiseSystem

RakPeer - Inform a remote system of our IP/Port, plus some offline data

§

RemoteDisconnectNotification

ConnectionGraph plugin - In a client/server environment, a client other than ourselves has disconnected gracefully. Packet::systemAddress is modified to reflect the systemAddress of this client.

§

RemoteConnectionLost

ConnectionGraph plugin - In a client/server environment, a client other than ourselves has been forcefully dropped. Packet::systemAddress is modified to reflect the systemAddress of this client.

§

RemoteNewIncomingConnection

ConnectionGraph plugin - In a client/server environment, a client other than ourselves has connected. Packet::systemAddress is modified to reflect the systemAddress of the client that is not connected directly to us. The packet encoding is SystemAddress 1, ConnectionGraphGroupID 1, SystemAddress 2, ConnectionGraphGroupID 2

§

DownloadProgress

§

FileListTransferHeader

FileListTransfer plugin - Setup data

§

FileListTransferFile

FileListTransfer plugin - A file

§

DDTDownloadRequest

DirectoryDeltaTransfer plugin - Request from a remote system for a download of a directory

§

TransportString

RakNetTransport plugin - Transport provider message, used for remote console

§

ReplicaManagerConstruction

ReplicaManager plugin - Create an object

§

ReplicaManagerDestruction

ReplicaManager plugin - Destroy an object

§

ReplicaManagerScopeChange

ReplicaManager plugin - Changed scope of an object

§

ReplicaManagerSerialize

ReplicaManager plugin - Serialized data of an object

§

ReplicaManagerDownloadStarted

ReplicaManager plugin - New connection, about to send all world objects

§

ReplicaManagerDownloadComplete

ReplicaManager plugin - Finished downloading all serialized objects

§

ConnectionGraphRequest

ConnectionGraph plugin - Request the connection graph from another system

§

ConnectionGraphReply

ConnectionGraph plugin - Reply to a connection graph download request

§

ConnectionGraphUpdate

ConnectionGraph plugin - Update edges / nodes for a system with a connection graph

§

ConnectionGraphNewConnection

ConnectionGraph plugin - Add a new connection to a connection graph

§

ConnectionGraphConnectionLost

ConnectionGraph plugin - Remove a connection from a connection graph - connection was abruptly lost

§

ConnectionGraphDisconnectionNotification

ConnectionGraph plugin - Remove a connection from a connection graph - connection was gracefully lost

§

RouteAndMulticast

Router plugin - route a message through another system

§

RakVoiceOpenChannelRequest

RakVoice plugin - Open a communication channel

§

RakVoiceOpenChannelReply

RakVoice plugin - Communication channel accepted

§

RakVoiceCloseChannel

RakVoice plugin - Close a communication channel

§

RakVoiceData

RakVoice plugin - Voice data

§

AutopatcherGetChangelistSinceDate

Autopatcher plugin - Get a list of files that have changed since a certain date

§

AutopatcherCreatingList

Autopatcher plugin - A list of files to create

§

AutopatcherDeletionList

Autopatcher plugin - A list of files to delete

§

AutopatcherGetPatch

Autopatcher plugin - A list of files to get patches for

§

AutopatcherPatchList

Autopatcher plugin - A list of patches for a list of files

§

AutopatcherRepositoryFatalError

Autopatcher plugin - Returned to the user: An error from the database repository for the autopatcher.

§

AutopatcherFinishedInternal

Autopatcher plugin - Finished getting all files from the autopatcher

§

AutopatcherFinished

§

AutopatcherRestartApplication

Autopatcher plugin - Returned to the user: You must restart the application to finish patching.

§

NATPunchthroughRequest

NATPunchthrough plugin - Intermediary got a request to help punch through a nat

§

NATTargetNotConnected

NATPunchthrough plugin - Intermediary cannot complete the request because the target system is not connected

§

NATTargetConnectionLost

NATPunchthrough plugin - While attempting to connect, we lost the connection to the target system

§

NATConnectAtTime

NATPunchthrough plugin - Internal message to connect at a certain time

§

NATSendOfflineMessageAtTime

NATPunchthrough plugin - Internal message to send a message (to punch through the nat) at a certain time

§

NATInProgress

NATPunchthrough plugin - The facilitator is already attempting this connection

§

DatabaseQueryRequest

LightweightDatabase plugin - Query

§

DatabaseUpdateRow

LightweightDatabase plugin - Update

§

DatabaseRemoveRow

LightweightDatabase plugin - Remove

§

DatabaseQueryReply

LightweightDatabase plugin - A serialized table. Bytes 1+ contain the table. Pass to TableSerializer::DeserializeTable

§

DatabaseUnknownTable

LightweightDatabase plugin - Specified table not found

§

DatabaseIncorrectPassword

LightweightDatabase plugin - Incorrect password

§

ReadyEventSet

ReadyEvent plugin - Set the ready state for a particular system

§

ReadyEventUnset

ReadyEvent plugin - Unset the ready state for a particular system

§

ReadyEventAllSet

All systems are in state ID_READY_EVENT_SET

§

ReadyEventQuery

ReadyEvent plugin - Request of ready event state - used for pulling data when newly connecting

§

LobbyGeneral

Lobby packets. Second byte indicates type.

§

AutoRPCCall

Auto RPC procedure call

§

AutoRPCRemoteIndex

Auto RPC functionName to index mapping

§

AutoRPCUnknownRemoteIndex

Auto RPC functionName to index mapping, lookup failed. Will try to auto recover

§

RPCRemoteError

Auto RPC error code See AutoRPC.h for codes, stored in packet->data[1]

Implementations§

source§

impl ID

source

pub fn of_packet(bytes: &[u8]) -> Result<u8, Error>

Trait Implementations§

source§

impl Debug for ID

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromPrimitive for ID

source§

fn from_i64(n: i64) -> Option<Self>

Converts an i64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_u64(n: u64) -> Option<Self>

Converts an u64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_isize(n: isize) -> Option<Self>

Converts an isize to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_i8(n: i8) -> Option<Self>

Converts an i8 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_i16(n: i16) -> Option<Self>

Converts an i16 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_i32(n: i32) -> Option<Self>

Converts an i32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_i128(n: i128) -> Option<Self>

Converts an i128 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
source§

fn from_usize(n: usize) -> Option<Self>

Converts a usize to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_u8(n: u8) -> Option<Self>

Converts an u8 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_u16(n: u16) -> Option<Self>

Converts an u16 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_u32(n: u32) -> Option<Self>

Converts an u32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_u128(n: u128) -> Option<Self>

Converts an u128 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
source§

fn from_f32(n: f32) -> Option<Self>

Converts a f32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
source§

fn from_f64(n: f64) -> Option<Self>

Converts a f64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
source§

impl ToPrimitive for ID

source§

fn to_i64(&self) -> Option<i64>

Converts the value of self to an i64. If the value cannot be represented by an i64, then None is returned.
source§

fn to_u64(&self) -> Option<u64>

Converts the value of self to a u64. If the value cannot be represented by a u64, then None is returned.
source§

fn to_isize(&self) -> Option<isize>

Converts the value of self to an isize. If the value cannot be represented by an isize, then None is returned.
source§

fn to_i8(&self) -> Option<i8>

Converts the value of self to an i8. If the value cannot be represented by an i8, then None is returned.
source§

fn to_i16(&self) -> Option<i16>

Converts the value of self to an i16. If the value cannot be represented by an i16, then None is returned.
source§

fn to_i32(&self) -> Option<i32>

Converts the value of self to an i32. If the value cannot be represented by an i32, then None is returned.
source§

fn to_i128(&self) -> Option<i128>

Converts the value of self to an i128. If the value cannot be represented by an i128 (i64 under the default implementation), then None is returned. Read more
source§

fn to_usize(&self) -> Option<usize>

Converts the value of self to a usize. If the value cannot be represented by a usize, then None is returned.
source§

fn to_u8(&self) -> Option<u8>

Converts the value of self to a u8. If the value cannot be represented by a u8, then None is returned.
source§

fn to_u16(&self) -> Option<u16>

Converts the value of self to a u16. If the value cannot be represented by a u16, then None is returned.
source§

fn to_u32(&self) -> Option<u32>

Converts the value of self to a u32. If the value cannot be represented by a u32, then None is returned.
source§

fn to_u128(&self) -> Option<u128>

Converts the value of self to a u128. If the value cannot be represented by a u128 (u64 under the default implementation), then None is returned. Read more
source§

fn to_f32(&self) -> Option<f32>

Converts the value of self to an f32. Overflows may map to positive or negative inifinity, otherwise None is returned if the value cannot be represented by an f32.
source§

fn to_f64(&self) -> Option<f64>

Converts the value of self to an f64. Overflows may map to positive or negative inifinity, otherwise None is returned if the value cannot be represented by an f64. Read more
source§

impl WriteSafe for ID

Auto Trait Implementations§

§

impl RefUnwindSafe for ID

§

impl Send for ID

§

impl Sync for ID

§

impl Unpin for ID

§

impl UnwindSafe for ID

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more