pub enum LineEndingMode {
Required,
Forbidden,
}Expand description
Defines how the parser should handle CRLF line endings.
NMEA 0183 messages typically end with a carriage return and line feed (\r\n),
but some systems or applications may omit these characters.
Variants§
Required
CRLF line ending is required and must be present.
The parser will fail if the message does not end with \r\n.
This is the standard NMEA 0183 format for messages transmitted over
serial connections or stored in files.
Use this mode when parsing standard NMEA log files or serial port data.
Forbidden
CRLF line ending is forbidden and must not be present.
The parser will fail if the message ends with \r\n.
This mode is useful when parsing NMEA messages that have been processed
or transmitted through systems that strip line endings.
Use this mode when parsing messages from APIs, databases, or other sources where line endings have been removed.
Trait Implementations§
Source§impl Clone for LineEndingMode
impl Clone for LineEndingMode
Source§fn clone(&self) -> LineEndingMode
fn clone(&self) -> LineEndingMode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more