pub enum AprsEvent {
StationHeard(StationEntry),
MessageReceived(AprsMessage),
MessageDelivered(String),
MessageRejected(String),
MessageExpired(String),
PositionReceived {
source: String,
position: AprsPosition,
},
WeatherReceived {
source: String,
weather: AprsWeather,
},
PacketDigipeated {
source: String,
},
QueryResponded {
to: String,
},
RawPacket(Ax25Packet),
}Expand description
An event produced by AprsClient::next_event.
Each variant represents a distinct category of APRS activity. The client translates raw KISS/AX.25/APRS packets into these typed events so callers never need to parse wire data.
Variants§
StationHeard(StationEntry)
A new or updated station was heard. Contains the station’s current state after applying the received packet.
MessageReceived(AprsMessage)
An APRS message addressed to us was received.
MessageDelivered(String)
A previously sent message was acknowledged by the remote station.
MessageRejected(String)
A previously sent message was rejected by the remote station.
MessageExpired(String)
A previously sent message expired after exhausting all retries.
PositionReceived
A position report was received from another station.
WeatherReceived
A weather report was received from another station.
PacketDigipeated
A packet was digipeated (relayed) by our station.
QueryResponded
An automatic response to a ?APRSP position query was sent.
RawPacket(Ax25Packet)
A raw AX.25 packet that does not match any specific event type.