pub struct KickoffCalculator { /* private fields */ }Expand description
Detects and classifies kickoffs and their outcomes.
Implementations§
Source§impl KickoffCalculator
impl KickoffCalculator
pub fn new() -> Self
pub fn events(&self) -> &[KickoffEvent]
pub fn new_events(&self) -> &[KickoffEvent]
Sourcepub fn finish(&mut self)
pub fn finish(&mut self)
Finalize any in-flight kickoff at end of stream. Routed through the
ledger so the boundary is handled uniformly; a concluded kickoff that
was only waiting for late goal attribution is emitted, while an
unresolved kickoff is discarded (see ActiveKickoff::on_boundary).
pub fn update( &mut self, frame: &FrameInfo, gameplay: &GameplayState, ball: &BallFrameState, players: &PlayerFrameState, touch_state: &TouchState, events: &FrameEventsState, ) -> SubtrActorResult<()>
Trait Implementations§
Source§impl Clone for KickoffCalculator
impl Clone for KickoffCalculator
Source§impl Debug for KickoffCalculator
impl Debug for KickoffCalculator
Auto Trait Implementations§
impl Freeze for KickoffCalculator
impl RefUnwindSafe for KickoffCalculator
impl Send for KickoffCalculator
impl Sync for KickoffCalculator
impl Unpin for KickoffCalculator
impl UnsafeUnpin for KickoffCalculator
impl UnwindSafe for KickoffCalculator
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