pub enum Error {
Show 15 variants
NotEnoughBytes,
IoError,
NoSyncByte,
ReversedStream,
EnhancedCrc,
NonSupportedTimescale,
UnknownMessage,
Utf8Error,
MissingCRC,
CorrupctBadCRC,
IncompleteMessage(usize),
NonSupportedMesssage(usize),
NonSupportedSubRecord,
TooLargeInternalLimitation,
ClosedSourceMessage(ClosedSourceMeta),
}Variants§
NotEnoughBytes
Not enough bytes available to continue decoding process
IoError
I/O error
NoSyncByte
Missing SYNC byte
ReversedStream
Library limitation: reversed streams are not supported
EnhancedCrc
Library limitation: enhanced CRC is not supported yet
NonSupportedTimescale
Found an unsupported timescale that we cannot interprate.
UnknownMessage
Found unknown message ID
Utf8Error
Error while attempting to interprate UTF-8 (invalid ASCII)
MissingCRC
Message is missing CRC field and cannot be verified
CorrupctBadCRC
Message corrupt: received CRC does not match expected CRC
IncompleteMessage(usize)
Incomplete message: need more data to complete
NonSupportedMesssage(usize)
Library limitation: not all open source Messages supported yet
NonSupportedSubRecord
Library limtation: not all subrecords supported yet
TooLargeInternalLimitation
Library limtation: should never happen, because this library will be designed to parse all open source [Message]s. This may happen as either we’re still in development (bad internal design) or for format that we still do not support (temporarily “ok”)
ClosedSourceMessage(ClosedSourceMeta)
Found closed source message