pub enum ChecksumMode {
Required,
Optional,
}Expand description
Defines how the parser should handle NMEA message checksums.
NMEA 0183 messages can include an optional checksum in the format *CC where
CC is a two-digit hexadecimal value representing the XOR of all bytes in the
message content (excluding the ‘$’ prefix and ‘*’ delimiter).
Variants§
Required
Checksum is required and must be present.
The parser will fail if no *CC checksum is found at the end of the message.
If a checksum is present, it will be validated against the calculated checksum.
Use this mode for strict NMEA 0183 compliance or when data integrity is critical.
Optional
Checksum is optional but will be validated if present.
The parser will accept messages both with and without checksums:
- If no checksum is present (
*CCmissing), parsing continues normally - If a checksum is present, it must be valid or parsing will fail
Use this mode when working with mixed message sources or legacy equipment that may not always include checksums.
Trait Implementations§
Source§impl Clone for ChecksumMode
impl Clone for ChecksumMode
Source§fn clone(&self) -> ChecksumMode
fn clone(&self) -> ChecksumMode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more