pub struct AprsTelemetry {
pub sequence: Vec<u8>,
pub analog: [Option<f32>; 5],
pub digital: u8,
pub comment: Vec<u8>,
}Expand description
An APRS telemetry data packet.
DTI: T (followed by #)
The APRS spec defines exactly 5 analog channels and 8 digital bits. Using fixed-size arrays avoids heap allocation and makes the type encoding match the protocol constraint.
Fields§
§sequence: Vec<u8>Sequence number (000–999, or MIC-E style alphanumeric).
analog: [Option<f32>; 5]Five analog channel values. None means the field was absent or unparseable.
digital: u8Eight digital channel bits packed into a byte (bit 7 = channel 1).
comment: Vec<u8>Implementations§
Trait Implementations§
Source§impl Clone for AprsTelemetry
impl Clone for AprsTelemetry
Source§fn clone(&self) -> AprsTelemetry
fn clone(&self) -> AprsTelemetry
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 AprsTelemetry
impl Debug for AprsTelemetry
Source§impl PartialEq for AprsTelemetry
impl PartialEq for AprsTelemetry
Source§fn eq(&self, other: &AprsTelemetry) -> bool
fn eq(&self, other: &AprsTelemetry) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AprsTelemetry
Auto Trait Implementations§
impl Freeze for AprsTelemetry
impl RefUnwindSafe for AprsTelemetry
impl Send for AprsTelemetry
impl Sync for AprsTelemetry
impl Unpin for AprsTelemetry
impl UnsafeUnpin for AprsTelemetry
impl UnwindSafe for AprsTelemetry
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