pub struct Nmea<'a> {
pub sentence: &'a [u8],
}Expand description
APRS NMEA packet bytes.
Fields§
§sentence: &'a [u8]NMEA sentence bytes after the $ data type identifier.
Implementations§
Source§impl Nmea<'_>
impl Nmea<'_>
Sourcepub fn talker_id(&self) -> Option<&[u8]>
pub fn talker_id(&self) -> Option<&[u8]>
Returns the NMEA talker ID from the sentence address field.
Sourcepub fn sentence_id(&self) -> Option<&[u8]>
pub fn sentence_id(&self) -> Option<&[u8]>
Returns the NMEA sentence formatter ID from the sentence address field.
Sourcepub fn data_fields(&self) -> Vec<&[u8]>
pub fn data_fields(&self) -> Vec<&[u8]>
Returns data fields after the NMEA address field without the checksum.
Sourcepub fn checksum(&self) -> Option<NmeaChecksum>
pub fn checksum(&self) -> Option<NmeaChecksum>
Returns checksum validation details when the sentence has *HH syntax.
Trait Implementations§
impl<'a> Copy for Nmea<'a>
impl<'a> Eq for Nmea<'a>
impl<'a> StructuralPartialEq for Nmea<'a>
Auto Trait Implementations§
impl<'a> Freeze for Nmea<'a>
impl<'a> RefUnwindSafe for Nmea<'a>
impl<'a> Send for Nmea<'a>
impl<'a> Sync for Nmea<'a>
impl<'a> Unpin for Nmea<'a>
impl<'a> UnsafeUnpin for Nmea<'a>
impl<'a> UnwindSafe for Nmea<'a>
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