[−][src]Struct f1_api::packet::telemetry::TelemetryPacket
Packet containing the telemetry of all cars in the session
The F1 games publish telemetry data for each car in the session. The telemetry data includes parameters such as the car's speed, as well as information in controller inputs from the user.
Methods
impl TelemetryPacket
[src]
pub fn new(
header: Header,
telemetry: Vec<Telemetry>,
button_status: Button
) -> Self
[src]
header: Header,
telemetry: Vec<Telemetry>,
button_status: Button
) -> Self
Constructs a new TelemetryPacket
.
impl TelemetryPacket
[src]
pub fn button_status(&self) -> Button
[src]
Returns a bit flag indicating which buttons are currently pressed.
impl TelemetryPacket
[src]
pub fn header(&self) -> &Header
[src]
Returns the packet header prefixing the telemetry packet.
pub fn telemetry(&self) -> &Vec<Telemetry>
[src]
Returns the telemetry data for each car in the session.
Trait Implementations
impl Clone for TelemetryPacket
[src]
fn clone(&self) -> TelemetryPacket
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TelemetryPacket
[src]
impl PartialEq<TelemetryPacket> for TelemetryPacket
[src]
fn eq(&self, other: &TelemetryPacket) -> bool
[src]
fn ne(&self, other: &TelemetryPacket) -> bool
[src]
impl PartialOrd<TelemetryPacket> for TelemetryPacket
[src]
fn partial_cmp(&self, other: &TelemetryPacket) -> Option<Ordering>
[src]
fn lt(&self, other: &TelemetryPacket) -> bool
[src]
fn le(&self, other: &TelemetryPacket) -> bool
[src]
fn gt(&self, other: &TelemetryPacket) -> bool
[src]
fn ge(&self, other: &TelemetryPacket) -> bool
[src]
impl StructuralPartialEq for TelemetryPacket
[src]
Auto Trait Implementations
impl RefUnwindSafe for TelemetryPacket
impl Send for TelemetryPacket
impl Sync for TelemetryPacket
impl Unpin for TelemetryPacket
impl UnwindSafe for TelemetryPacket
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,