pub enum FitsError {
Open {
fits_error: Error,
fits_filename: PathBuf,
source_file: &'static str,
source_line: u32,
},
MissingKey {
key: String,
fits_filename: PathBuf,
hdu_num: usize,
source_file: &'static str,
source_line: u32,
},
NotImage {
fits_filename: PathBuf,
hdu_num: usize,
source_file: &'static str,
source_line: u32,
},
LongString {
key: String,
fits_filename: PathBuf,
hdu_num: usize,
source_file: &'static str,
source_line: u32,
},
Fitsio {
fits_error: Error,
fits_filename: PathBuf,
hdu_num: usize,
source_file: &'static str,
source_line: u32,
},
Parse {
key: String,
fits_filename: PathBuf,
hdu_num: usize,
source_file: &'static str,
source_line: u32,
},
}
Expand description
FitsError subtypes - mainly used by CorrelatorContext
Variants§
Open
Error when opening a fits file.
MissingKey
Error describing a key that couldn’t be found in a fits header.
NotImage
Error describing a HDU that couldn’t be used as an image (e.g. HduInfo::ImageInfo
).
LongString
Failure to read a long string.
Fitsio
A generic error associated with the fitsio crate.
Fields
Parse
An error associated with parsing a string into another type.
Trait Implementations§
source§impl Error for FitsError
impl Error for FitsError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
source§impl From<FitsError> for CoarseChannelError
impl From<FitsError> for CoarseChannelError
source§impl From<FitsError> for GpuboxError
impl From<FitsError> for GpuboxError
source§impl From<FitsError> for MwalibError
impl From<FitsError> for MwalibError
Auto Trait Implementations§
impl Freeze for FitsError
impl !RefUnwindSafe for FitsError
impl Send for FitsError
impl Sync for FitsError
impl Unpin for FitsError
impl !UnwindSafe for FitsError
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more