pub struct AprsPosition {
pub timestamp: Option<Timestamp>,
pub messaging_supported: bool,
pub position: Position,
pub extension: Option<Extension>,
pub weather: Option<AprsWeatherData>,
pub frequency_mhz: Option<f32>,
pub comment: Vec<u8>,
}Expand description
A decoded APRS position report.
Covers DTI bytes ! = / @:
!= no timestamp, messaging not supported== no timestamp, messaging supported/= timestamp present, messaging not supported@= timestamp present, messaging supported
Fields§
§timestamp: Option<Timestamp>§messaging_supported: bool§position: Position§extension: Option<Extension>Data extension (course/speed, PHG, RNG, DFS) if one was found in the comment.
weather: Option<AprsWeatherData>Weather data, populated when the symbol is /_ (weather station).
frequency_mhz: Option<f32>Frequency in MHz extracted from the start of the comment field, if present. The raw comment is preserved in full for round-trip fidelity.
comment: Vec<u8>Implementations§
Trait Implementations§
Source§impl Clone for AprsPosition
impl Clone for AprsPosition
Source§fn clone(&self) -> AprsPosition
fn clone(&self) -> AprsPosition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AprsPosition
impl Debug for AprsPosition
Source§impl PartialEq for AprsPosition
impl PartialEq for AprsPosition
Source§fn eq(&self, other: &AprsPosition) -> bool
fn eq(&self, other: &AprsPosition) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AprsPosition
Auto Trait Implementations§
impl Freeze for AprsPosition
impl RefUnwindSafe for AprsPosition
impl Send for AprsPosition
impl Sync for AprsPosition
impl Unpin for AprsPosition
impl UnsafeUnpin for AprsPosition
impl UnwindSafe for AprsPosition
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