#[non_exhaustive]pub enum Problem {
Truncated(PathBuf),
Unreadable {
path: PathBuf,
error: Error,
},
FileCount {
expected: usize,
found: usize,
},
}Expand description
Something wrong with an installed catalogue.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Truncated(PathBuf)
A file is too short to be one of the catalogue’s (every format has at least a 110-byte header or a FITS block).
Unreadable
A file could not be examined.
FileCount
The catalogue has the wrong number of files: its grid (an ASTAP database) or its set (downloaded indexes) fixes how many.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Problem
impl !UnwindSafe for Problem
impl Freeze for Problem
impl Send for Problem
impl Sync for Problem
impl Unpin for Problem
impl UnsafeUnpin for Problem
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