#[non_exhaustive]pub enum PacketId {
Show 15 variants
Motion = 0,
Session = 1,
Laps = 2,
Event = 3,
Participants = 4,
CarSetups = 5,
CarTelemetry = 6,
CarStatus = 7,
FinalClassification = 8,
LobbyInfo = 9,
CarDamage = 10,
SessionHistory = 11,
TyreSets = 12,
MotionEx = 13,
TimeTrial = 14,
}Expand description
Unique identifier of the type of this packet.
Represents a u8.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Motion = 0
Session = 1
Laps = 2
Event = 3
Participants = 4
CarSetups = 5
CarTelemetry = 6
CarStatus = 7
FinalClassification = 8
LobbyInfo = 9
CarDamage = 10
SessionHistory = 11
TyreSets = 12
MotionEx = 13
TimeTrial = 14
Trait Implementations§
Source§impl BinRead for PacketId
impl BinRead for PacketId
Source§fn read_options<R: Read + Seek>(
__binrw_generated_var_reader: &mut R,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>,
) -> BinResult<Self>
fn read_options<R: Read + Seek>( __binrw_generated_var_reader: &mut R, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<Self>
Source§fn read<R>(reader: &mut R) -> Result<Self, Error>
fn read<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments. Read moreSource§fn read_be<R>(reader: &mut R) -> Result<Self, Error>
fn read_be<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
big-endian byte order. Read moreSource§fn read_le<R>(reader: &mut R) -> Result<Self, Error>
fn read_le<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
little-endian byte order. Read moreSource§fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
Read
T from the reader assuming native-endian byte order. Read moreSource§fn read_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader using the given arguments. Read moreSource§fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader, assuming big-endian byte order, using the
given arguments. Read moreSource§impl<'de> Deserialize<'de> for PacketId
impl<'de> Deserialize<'de> for PacketId
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
Source§impl Ord for PacketId
impl Ord for PacketId
Source§impl PartialOrd for PacketId
impl PartialOrd for PacketId
Source§impl ReadEndian for PacketId
impl ReadEndian for PacketId
Source§const ENDIAN: EndianKind
const ENDIAN: EndianKind
The endianness of the type.
impl Copy for PacketId
impl Eq for PacketId
impl StructuralPartialEq for PacketId
Auto Trait Implementations§
impl Freeze for PacketId
impl RefUnwindSafe for PacketId
impl Send for PacketId
impl Sync for PacketId
impl Unpin for PacketId
impl UnwindSafe for PacketId
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