pub enum VoltageFileError {
Show 21 variants
InvalidTimeStepIndex(usize),
InvalidCoarseChanIndex(usize),
NoVoltageFiles,
InvalidBufferSize(usize, usize),
InvalidGpsSecondStart(u64, u64),
InvalidVoltageFileSize(u64, String, u64),
InvalidGpsSecondCount(u64, usize, u64),
VoltageFileError(String, String),
Mixture,
GpsTimeMissing {
expected: u64,
got: u64,
},
UnevenChannelsForGpsTime {
expected: u8,
got: u8,
},
Unrecognised(String),
MissingObsid(String),
UnequalFileSizes,
MetafitsObsidMismatch,
ObsidMismatch {
obsid: u32,
voltage_filename: String,
voltage_obsid: u32,
},
EmptyBTreeMap,
InvalidMwaVersion {
mwa_version: MWAVersion,
},
NoDataForTimeStepCoarseChannel {
timestep_index: usize,
coarse_chan_index: usize,
},
IoError(String),
ReadSecondOutOfBounds {
gps_second_start: u64,
gps_second_end: u64,
ts_start_gps_time: u64,
ts_duration_sec: u64,
},
}Expand description
VoltageFileError subtypes - mainly used by VoltageContext
Variants§
InvalidTimeStepIndex(usize)
InvalidCoarseChanIndex(usize)
NoVoltageFiles
InvalidBufferSize(usize, usize)
InvalidGpsSecondStart(u64, u64)
InvalidVoltageFileSize(u64, String, u64)
InvalidGpsSecondCount(u64, usize, u64)
VoltageFileError(String, String)
Mixture
GpsTimeMissing
UnevenChannelsForGpsTime
Unrecognised(String)
MissingObsid(String)
UnequalFileSizes
MetafitsObsidMismatch
ObsidMismatch
EmptyBTreeMap
InvalidMwaVersion
Fields
§
mwa_version: MWAVersionNoDataForTimeStepCoarseChannel
IoError(String)
ReadSecondOutOfBounds
Trait Implementations§
Source§impl Debug for VoltageFileError
impl Debug for VoltageFileError
Source§impl Display for VoltageFileError
impl Display for VoltageFileError
Source§impl Error for VoltageFileError
impl Error for VoltageFileError
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()
Source§impl From<Error> for VoltageFileError
impl From<Error> for VoltageFileError
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 VoltageFileError
impl RefUnwindSafe for VoltageFileError
impl Send for VoltageFileError
impl Sync for VoltageFileError
impl Unpin for VoltageFileError
impl UnsafeUnpin for VoltageFileError
impl UnwindSafe for VoltageFileError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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