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.
Trait Implementations§
source§impl PartialEq for GBFSError
impl PartialEq for GBFSError
impl StructuralPartialEq for GBFSError
Auto Trait Implementations§
impl RefUnwindSafe for GBFSError
impl Send for GBFSError
impl Sync for GBFSError
impl Unpin for GBFSError
impl UnwindSafe for GBFSError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more