pub enum FitsHeaderError {
InvalidLength {
expected: usize,
found: usize,
intent: String,
},
DeserializationError {
found: Vec<u8>,
intent: String,
},
InvalidType,
}Available on crate feature
fits only.Expand description
An enumeration of errors that could occur when processing a FITS header element.
Variants§
InvalidLength
Indicates an unexpected length of bytes was encountered during processing.
Fields
DeserializationError
Indicates invalid bytes were encountered during processing.
Fields
InvalidType
Indicates the expected type does not match the cached value type.
Trait Implementations§
Source§impl Debug for FitsHeaderError
impl Debug for FitsHeaderError
Source§impl Display for FitsHeaderError
impl Display for FitsHeaderError
Source§impl Error for FitsHeaderError
impl Error for FitsHeaderError
1.30.0 · 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 Freeze for FitsHeaderError
impl RefUnwindSafe for FitsHeaderError
impl Send for FitsHeaderError
impl Sync for FitsHeaderError
impl Unpin for FitsHeaderError
impl UnwindSafe for FitsHeaderError
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> RealAny for Twhere
T: Any,
impl<T> RealAny for Twhere
T: Any,
Source§fn real_type_id(&self) -> TypeId
fn real_type_id(&self) -> TypeId
Available on crate feature
fits only.Gets the base type ID for
self.