Enum mwalib::MwalibError
source · pub enum MwalibError {
Fits(FitsError),
CoarseChannel(CoarseChannelError),
Metafits(MetafitsError),
Rfinput(RfinputError),
Gpubox(GpuboxError),
Voltage(VoltageFileError),
Parse {
key: String,
fits_filename: String,
hdu_num: usize,
source_file: String,
source_line: u32,
},
}
Expand description
MwalibError subtypes
Variants§
Fits(FitsError)
An error derived from FitsError
.
CoarseChannel(CoarseChannelError)
An error derived from RfinputError
.
Metafits(MetafitsError)
An error dervied from MetafitsError
.
Rfinput(RfinputError)
An error derived from RfinputError
.
Gpubox(GpuboxError)
An error derived from GpuboxError
.
Voltage(VoltageFileError)
An error derived from VoltageFileError
.
Parse
Trait Implementations§
source§impl Debug for MwalibError
impl Debug for MwalibError
source§impl Display for MwalibError
impl Display for MwalibError
source§impl Error for MwalibError
impl Error for MwalibError
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<CoarseChannelError> for MwalibError
impl From<CoarseChannelError> for MwalibError
source§fn from(source: CoarseChannelError) -> Self
fn from(source: CoarseChannelError) -> Self
Converts to this type from the input type.
source§impl From<FitsError> for MwalibError
impl From<FitsError> for MwalibError
source§impl From<GpuboxError> for MwalibError
impl From<GpuboxError> for MwalibError
source§fn from(source: GpuboxError) -> Self
fn from(source: GpuboxError) -> Self
Converts to this type from the input type.
source§impl From<MetafitsError> for MwalibError
impl From<MetafitsError> for MwalibError
source§fn from(source: MetafitsError) -> Self
fn from(source: MetafitsError) -> Self
Converts to this type from the input type.
source§impl From<RfinputError> for MwalibError
impl From<RfinputError> for MwalibError
source§fn from(source: RfinputError) -> Self
fn from(source: RfinputError) -> Self
Converts to this type from the input type.
source§impl From<VoltageFileError> for MwalibError
impl From<VoltageFileError> for MwalibError
source§fn from(source: VoltageFileError) -> Self
fn from(source: VoltageFileError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MwalibError
impl !RefUnwindSafe for MwalibError
impl Send for MwalibError
impl Sync for MwalibError
impl Unpin for MwalibError
impl !UnwindSafe for MwalibError
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