#[non_exhaustive]pub struct ParticipantsData {
pub ai_controlled: bool,
pub driver_id: u8,
pub network_id: u8,
pub team_id: u8,
pub my_team: bool,
pub race_number: u8,
pub nationality: Nationality,
pub name: String,
pub your_telemetry: Option<YourTelemetry>,
pub show_online_names: bool,
pub tech_level: u16,
pub platform: Option<Platform>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.ai_controlled: boolWhether the vehicle is controlled by AI.
driver_id: u8Driver’s ID.
See driver_id
for possible values.
network_id: u8Unique ID for network players.
team_id: u8Team’s ID.
See team_id for possible values.
my_team: boolWhether my team is being used.
race_number: u8Race number of the car.
nationality: NationalityDriver’s nationality.
name: StringDriver’s name.
your_telemetry: Option<YourTelemetry>Player’s UDP visibility setting.
show_online_names: boolWhether this player’s “show online names” setting is on. Available from the 2023 format onwards.
tech_level: u16F1 World tech level. Available from the 2024 format onwards.
platform: Option<Platform>Player’s platform. Available from the 2023 format onwards.
Trait Implementations§
Source§impl BinRead for ParticipantsData
impl BinRead for ParticipantsData
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 Clone for ParticipantsData
impl Clone for ParticipantsData
Source§fn clone(&self) -> ParticipantsData
fn clone(&self) -> ParticipantsData
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 ParticipantsData
impl Debug for ParticipantsData
Source§impl<'de> Deserialize<'de> for ParticipantsData
impl<'de> Deserialize<'de> for ParticipantsData
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 ParticipantsData
impl Ord for ParticipantsData
Source§fn cmp(&self, other: &ParticipantsData) -> Ordering
fn cmp(&self, other: &ParticipantsData) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ParticipantsData
impl PartialEq for ParticipantsData
Source§impl PartialOrd for ParticipantsData
impl PartialOrd for ParticipantsData
Source§impl ReadEndian for ParticipantsData
impl ReadEndian for ParticipantsData
Source§const ENDIAN: EndianKind
const ENDIAN: EndianKind
The endianness of the type.
Source§impl Serialize for ParticipantsData
impl Serialize for ParticipantsData
impl Eq for ParticipantsData
impl StructuralPartialEq for ParticipantsData
Auto Trait Implementations§
impl Freeze for ParticipantsData
impl RefUnwindSafe for ParticipantsData
impl Send for ParticipantsData
impl Sync for ParticipantsData
impl Unpin for ParticipantsData
impl UnwindSafe for ParticipantsData
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