pub struct FlipResetOutcomeEvent {
pub time: f32,
pub frame: usize,
pub reset_time: f32,
pub reset_frame: usize,
pub player: PlayerId,
pub is_team_0: bool,
pub counter_value: i32,
pub outcome: FlipResetOutcome,
pub time_to_use: Option<f32>,
}Expand description
Resolution of a flip reset (an on-ball dodge reset), emitted once per reset at the moment its outcome becomes known: either it was used by a dodge-powered touch (with the reset-to-use latency) or it went unused.
Fields§
§time: f32Time at which the outcome was resolved (touch time, landing time, or boundary time).
frame: usize§reset_time: f32§reset_frame: usize§player: PlayerId§is_team_0: bool§counter_value: i32§outcome: FlipResetOutcome§time_to_use: Option<f32>Seconds between the reset and the confirming dodge touch; Some iff
outcome is FlipResetOutcome::Used.
Trait Implementations§
Source§impl Clone for FlipResetOutcomeEvent
impl Clone for FlipResetOutcomeEvent
Source§impl Debug for FlipResetOutcomeEvent
impl Debug for FlipResetOutcomeEvent
Source§impl PartialEq for FlipResetOutcomeEvent
impl PartialEq for FlipResetOutcomeEvent
Source§impl Serialize for FlipResetOutcomeEvent
impl Serialize for FlipResetOutcomeEvent
impl StructuralPartialEq for FlipResetOutcomeEvent
Auto Trait Implementations§
impl Freeze for FlipResetOutcomeEvent
impl RefUnwindSafe for FlipResetOutcomeEvent
impl Send for FlipResetOutcomeEvent
impl Sync for FlipResetOutcomeEvent
impl Unpin for FlipResetOutcomeEvent
impl UnsafeUnpin for FlipResetOutcomeEvent
impl UnwindSafe for FlipResetOutcomeEvent
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