pub enum Error<'a> {
Show 14 variants
Utf8Decoding,
ASCII,
ChecksumMismatch {
calculated: u8,
found: u8,
},
WrongSentenceHeader {
expected: SentenceType,
found: SentenceType,
},
UnknownGnssType(&'a str),
ParsingError(Err<Error<&'a str>>),
SentenceLength(usize),
ParameterLength {
max_length: usize,
parameter_length: usize,
},
Unsupported(SentenceType),
Unknown(&'a str),
EmptyNavConfig,
InvalidGsvSentenceNum,
UnknownTalkerId {
expected: &'a str,
found: &'a str,
},
DisabledSentence,
}
Variants§
Utf8Decoding
The provided input was not a proper UTF-8 string
ASCII
The provided string message contains other apart from ASCII.
ChecksumMismatch
The checksum of the sentence was corrupt or wrong
WrongSentenceHeader
For some reason a sentence was passed to the wrong sentence specific parser, this error should never happen. First slice is the expected header, second is the found one
UnknownGnssType(&'a str)
An unknown GnssType
was found in the NMEA message.
ParsingError(Err<Error<&'a str>>)
The sentence could not be parsed because its format was invalid.
SentenceLength(usize)
The sentence was too long to be parsed, our current limit is SENTENCE_MAX_LEN
characters.
ParameterLength
Parameter was too long to fit into fixed ArrayString.
Unsupported(SentenceType)
The sentence is recognized but it is not supported by the crate.
Unknown(&'a str)
The sentence type is unknown for this crate.
The provided navigation configuration was empty and thus invalid
InvalidGsvSentenceNum
Invalid sentence number field in nmea sentence of type GSV
UnknownTalkerId
An unknown talker ID was found in the NMEA message.
DisabledSentence
The current sentences is parsable but the feature has been disabled.
Trait Implementations§
source§impl<'a> Error for Error<'a>
Available on crate feature std
only.
impl<'a> Error for Error<'a>
std
only.