pub struct ShotAccumulator {
pub actor: String,
pub key: ShotKey,
/* private fields */
}Expand description
Collects shot lifecycle events (BallFlight, ClubPath, FaceImpact)
and produces a complete ShotData on ShotFinished.
Used by consumers that need all shot fields together (GSPro bridge,
web shot cache, UI shot grid). Keyed by (actor, ShotKey).
Fields§
§actor: String§key: ShotKeyImplementations§
Source§impl ShotAccumulator
impl ShotAccumulator
Sourcepub fn set_ball(&mut self, ball: BallFlight)
pub fn set_ball(&mut self, ball: BallFlight)
Record ball flight data.
Sourcepub fn set_impact(&mut self, impact: FaceImpact)
pub fn set_impact(&mut self, impact: FaceImpact)
Record face impact data.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ShotAccumulator
impl RefUnwindSafe for ShotAccumulator
impl Send for ShotAccumulator
impl Sync for ShotAccumulator
impl Unpin for ShotAccumulator
impl UnsafeUnpin for ShotAccumulator
impl UnwindSafe for ShotAccumulator
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