#[non_exhaustive]pub enum PacketBody {
Location {
position: Box<PositionReport>,
messaging: bool,
},
Object {
name: String,
alive: bool,
position: Box<PositionReport>,
},
Item {
name: String,
alive: bool,
position: Box<PositionReport>,
},
Message(Message),
TelemetryMessage(Message),
Status {
text: String,
raw_timestamp: Option<String>,
timestamp: Option<AprsTimestamp>,
},
Capabilities(BTreeMap<String, String>),
Beacon {
data: String,
},
Weather {
weather: Box<Weather>,
position: Option<Box<PositionReport>>,
messaging: Option<bool>,
telemetry: Option<Telemetry>,
comment: Option<String>,
},
Telemetry(Telemetry),
}Expand description
Parsed APRS information field, represented by its concrete wire type.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Location
A station position report.
Fields
§
position: Box<PositionReport>Decoded position and its extensions.
Object
A named APRS object.
Fields
§
position: Box<PositionReport>Object position and its extensions.
Item
A named APRS item.
Fields
§
position: Box<PositionReport>Item position and its extensions.
Message(Message)
An ordinary message, acknowledgement, or rejection.
TelemetryMessage(Message)
A PARM., UNIT., EQNS., or BITS. telemetry metadata message.
Status
A station status report.
Fields
§
timestamp: Option<AprsTimestamp>Decoded timestamp with inferred calendar components.
Capabilities(BTreeMap<String, String>)
Station capabilities keyed by capability name.
Beacon
A generic destination-addressed beacon.
Weather
A positionless or positioned weather report.
Fields
§
position: Option<Box<PositionReport>>Position accompanying the weather report, if present.
Telemetry(Telemetry)
A classic, Mic-E, or inline base-91 telemetry report.
Trait Implementations§
Source§impl Clone for PacketBody
impl Clone for PacketBody
Source§impl Debug for PacketBody
impl Debug for PacketBody
Source§impl PartialEq for PacketBody
impl PartialEq for PacketBody
impl StructuralPartialEq for PacketBody
Auto Trait Implementations§
impl Freeze for PacketBody
impl RefUnwindSafe for PacketBody
impl Send for PacketBody
impl Sync for PacketBody
impl Unpin for PacketBody
impl UnsafeUnpin for PacketBody
impl UnwindSafe for PacketBody
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