pub enum Error {
InvalidHeader(&'static str),
UnexpectedEof,
InvalidBitpix(i64),
InvalidKeyword,
UnsupportedExtension(&'static str),
InvalidValue,
MissingKeyword(&'static str),
UnsupportedCompression(&'static str),
DecompressionError(&'static str),
Io(Error),
}Expand description
All errors that can occur during FITS I/O operations.
Variants§
InvalidHeader(&'static str)
Malformed FITS header block.
UnexpectedEof
Premature end of data while reading.
InvalidBitpix(i64)
Unrecognized BITPIX value.
InvalidKeyword
Malformed keyword name in a header card.
UnsupportedExtension(&'static str)
Unknown or unsupported XTENSION type.
InvalidValue
A header value could not be parsed correctly.
MissingKeyword(&'static str)
A required keyword was not found in the header.
UnsupportedCompression(&'static str)
Unsupported or unknown tile compression algorithm.
DecompressionError(&'static str)
Error during tile decompression (Rice/GZIP).
Io(Error)
An I/O error from the standard library.
Trait Implementations§
Source§impl Error for Error
Available on crate feature std only.
impl Error for Error
Available on crate feature
std only.Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
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