pub enum DStarEvent {
VoiceStart(DStarHeader),
VoiceData(VoiceFrame),
VoiceEnd,
VoiceLost,
TextMessage(String),
StationHeard(LastHeardEntry),
UrCallCommand(UrCallAction),
StatusUpdate(ModemStatus),
}Expand description
An event produced by DStarGateway::next_event.
Each variant represents a distinct category of D-STAR gateway activity. The gateway translates raw MMDVM responses into these typed events so callers never need to parse wire data.
Variants§
VoiceStart(DStarHeader)
A voice transmission started (header received from radio).
VoiceData(VoiceFrame)
A voice data frame received from the radio.
VoiceEnd
Voice transmission ended cleanly (EOT received).
VoiceLost
Voice transmission lost (no clean EOT, signal lost).
TextMessage(String)
A slow data text message was decoded from the voice stream.
StationHeard(LastHeardEntry)
A station was heard (added or updated in the last-heard list).
UrCallCommand(UrCallAction)
A URCALL command was detected in the voice header.
The gateway parsed the UR field and identified a special command (echo, unlink, info, link). The caller should handle the command (e.g. connect/disconnect reflector, start echo recording).
StatusUpdate(ModemStatus)
Modem status update received.