pub enum GBFSError {
HeaderInvalid,
FilenameTooLong(usize, usize),
Utf8Error(Utf8Error),
Cast(Error),
NoSuchFile(ArrayString<FILENAME_LEN>),
Truncated,
TooManyEntries(usize, usize),
}Expand description
Various error conditions that can occur when working with GBFS archives.
Variants§
HeaderInvalid
Returned when the archive’s header is not valid.
FilenameTooLong(usize, usize)
Returned when a file with a name that’s too long is encountered in the archive or provided by the user.
Utf8Error(Utf8Error)
Returned when a filename with invalid UTF-8 is encountered in the archive.
Cast(Error)
Returned when casting to the requested slice type fails.
NoSuchFile(ArrayString<FILENAME_LEN>)
Returned when a file with the given name does not exist.
Truncated
Returned when a file is truncated.
TooManyEntries(usize, usize)
Returned when an archive contains too many entries.