pub struct FitsError {
pub status: i32,
/* private fields */
}Expand description
An error identified by a CFITSIO status code.
status is the int CFITSIO would have written through int *status.
messages is the per-call analogue of the ffpmsg stack (not yet a
process-global stack).
Fields§
§status: i32CFITSIO status code.
Implementations§
Source§impl FitsError
impl FitsError
Sourcepub fn with_message(status: i32, msg: impl Into<String>) -> Self
pub fn with_message(status: i32, msg: impl Into<String>) -> Self
Error with a status code and one stack message.
Sourcepub fn status_text(&self) -> &'static str
pub fn status_text(&self) -> &'static str
Short ffgerr text for Self::status.
Sourcepub fn messages(&self) -> &[String]
pub fn messages(&self) -> &[String]
Messages that would appear on CFITSIO’s error stack for this call.
Sourcepub fn push_message(&mut self, msg: impl Into<String>)
pub fn push_message(&mut self, msg: impl Into<String>)
Append a stack message (analogue of ffpmsg).
Trait Implementations§
impl Eq for FitsError
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)>
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()
impl StructuralPartialEq for FitsError
Auto Trait Implementations§
impl Freeze for FitsError
impl RefUnwindSafe for FitsError
impl Send for FitsError
impl Sync for FitsError
impl Unpin for FitsError
impl UnsafeUnpin 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