Struct NmeaFrame
pub struct NmeaFrame {
header: NmeaHeader,
data: Vec<String>,
}Expand description
A NMEA 0183 frame.
Fields§
§header: NmeaHeader§data: Vec<String>Implementations§
§impl NmeaFrame
impl NmeaFrame
pub const fn standard(gnss: Gnss, sentence_formatter: SentenceFormatter) -> Self
pub const fn standard(gnss: Gnss, sentence_formatter: SentenceFormatter) -> Self
Creates a standard frame.
pub const fn is_standard(&self) -> bool
pub const fn is_standard(&self) -> bool
Returns true if the frame is a standard NMEA frame.
fn checksum(s: &str) -> u8
Trait Implementations§
§impl<'de> Deserialize<'de> for NmeaFrame
impl<'de> Deserialize<'de> for NmeaFrame
§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for NmeaFrame
Auto Trait Implementations§
impl Freeze for NmeaFrame
impl RefUnwindSafe for NmeaFrame
impl Send for NmeaFrame
impl Sync for NmeaFrame
impl Unpin for NmeaFrame
impl UnsafeUnpin for NmeaFrame
impl UnwindSafe for NmeaFrame
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