Skip to main content

Crate flighthook

Crate flighthook 

Source

Structs§

ActorStatusResponse
Per-actor status within the status response. Also used as the cached per-actor state in the web layer and UI.
BallFlight
Ball flight measurement data. All fields optional — send what the hardware supports.
ClubData
Club head measurement data. All fields optional.
ClubInfo
Club selection.
FaceImpact
Face impact location — where on the club face the ball was struck.
FlighthookConfig
Top-level persisted config. All fields are in user-friendly units (inches, feet, 0-100 percent) so the TOML file is hand-editable.
FlighthookMessage
A single event on the unified bus.
GameStateSnapshot
Immutable snapshot of the current global state.
GsProSection
A GSPro integration instance.
MevoSection
A Mevo/Mevo+ device instance.
MockMonitorSection
A mock launch monitor instance.
ModeRequest
POST /api/mode request body.
PlayerInfo
Player info (name).
PostSettingsResponse
POST /api/settings response.
R10Section
A Garmin R10 BLE device instance.
RandomClubSection
A random club cycling integration instance.
ShotAccumulator
Collects shot lifecycle events (BallFlight, ClubPath, FaceImpact) and produces a complete ShotData on ShotFinished.
ShotAggregator
High-level shot collector that manages multiple in-flight shots.
ShotData
ShotKey
Re-export flightrelay’s ShotKey as the canonical shot correlation type. Correlates shot lifecycle events. Generated once at trigger time, carried on every event in the shot sequence.
StatusResponse
GET /api/status response.
WebserverSection

Enums§

ActorStatus
Generic actor lifecycle status.
Club
Golf club.
ConfigAction
The specific config mutation to apply.
Distance
A distance value with unit. Serializes as a suffix string: "1.5in", "9ft", "3m", "30cm", "100yd", "42mm".
FlighthookEvent
The typed event payload carried by a FlighthookMessage.
Handedness
Player handedness.
RawPayload
Raw wire data attached to a bus message.
Severity
Alert severity level.
ShotDetectionMode
UnitSystem
Unit system for display. Imperial = yards/feet/inches/mph, Metric = meters/m/s.
Velocity
A velocity value with unit. Serializes as a suffix string: "67.2mps", "150.3mph", "108.0kph", "100.0fps".

Constants§

FRP_PATH
Recommended default WebSocket path for FRP connections.
FRP_PORT
Recommended default port for standalone FRP connections.
FRP_URL
Recommended default URL for standalone FRP connections.
FRP_VERSION
The FRP spec version this crate implements.

Traits§

DistanceExt
Flighthook-specific helpers on Distance for UI dropdowns and wire protocol shortcuts.
VelocityExt
Flighthook-specific helpers on Velocity for UI dropdowns.

Functions§

default_chipping_clubs
default_putting_clubs