#[non_exhaustive]pub struct LobbyInfoData {
pub ai_controlled: bool,
pub team_id: u8,
pub nationality: Nationality,
pub platform: Option<Platform>,
pub name: String,
pub car_number: u8,
pub your_telemetry: Option<YourTelemetry>,
pub show_online_names: bool,
pub tech_level: u16,
pub ready_status: ReadyStatus,
}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.
team_id: u8Team’s ID.
See team_id for possible values.
nationality: NationalityDriver’s nationality.
platform: Option<Platform>Player’s platform. Available from the 2023 format onwards.
name: StringDriver’s name.
car_number: u8Player’s car number.
your_telemetry: Option<YourTelemetry>The player’s “Your Telemetry” visibility setting. Available from the 2024 format onwards.
show_online_names: boolWhether the player has enabled the “Show online names” setting. Available from the 2024 format onwards.
tech_level: u16F1 World tech level. Available from the 2024 format onwards.
ready_status: ReadyStatusReadiness status.
Trait Implementations§
Source§impl BinRead for LobbyInfoData
impl BinRead for LobbyInfoData
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 LobbyInfoData
impl Clone for LobbyInfoData
Source§fn clone(&self) -> LobbyInfoData
fn clone(&self) -> LobbyInfoData
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 LobbyInfoData
impl Debug for LobbyInfoData
Source§impl<'de> Deserialize<'de> for LobbyInfoData
impl<'de> Deserialize<'de> for LobbyInfoData
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 LobbyInfoData
impl Ord for LobbyInfoData
Source§fn cmp(&self, other: &LobbyInfoData) -> Ordering
fn cmp(&self, other: &LobbyInfoData) -> 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 LobbyInfoData
impl PartialEq for LobbyInfoData
Source§impl PartialOrd for LobbyInfoData
impl PartialOrd for LobbyInfoData
Source§impl ReadEndian for LobbyInfoData
impl ReadEndian for LobbyInfoData
Source§const ENDIAN: EndianKind
const ENDIAN: EndianKind
The endianness of the type.
Source§impl Serialize for LobbyInfoData
impl Serialize for LobbyInfoData
impl Eq for LobbyInfoData
impl StructuralPartialEq for LobbyInfoData
Auto Trait Implementations§
impl Freeze for LobbyInfoData
impl RefUnwindSafe for LobbyInfoData
impl Send for LobbyInfoData
impl Sync for LobbyInfoData
impl Unpin for LobbyInfoData
impl UnwindSafe for LobbyInfoData
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