#[non_exhaustive]pub enum IoError {
Show 175 variants
Codec {
path: PathBuf,
source: Box<IoError>,
},
InvalidPadValue {
value: f64,
width: usize,
message: String,
},
Io {
path: PathBuf,
source: Error,
},
IncludeDepth {
path: PathBuf,
},
RecursiveInclude {
path: PathBuf,
},
Parse {
path: PathBuf,
line: usize,
message: String,
},
Format {
source: Error,
},
PotentialOutputShape {
field: &'static str,
rows: usize,
cols: usize,
min_rows: usize,
min_cols: usize,
},
InvalidPotentialOutput {
field: &'static str,
message: String,
},
MtdpShape {
field: &'static str,
rows: usize,
cols: usize,
expected_rows: usize,
expected_cols: usize,
},
MtdpLength {
field: &'static str,
len: usize,
expected: usize,
},
MtdpMissing {
field: &'static str,
},
MtdpParse {
field: &'static str,
token: String,
},
InvalidMtdp {
field: &'static str,
message: String,
},
MtdpTrailingTokens {
count: usize,
},
PotBinShape {
field: &'static str,
actual: Vec<usize>,
expected: Vec<usize>,
},
PotBinMissing {
field: &'static str,
},
PotBinParse {
field: &'static str,
token: String,
},
InvalidPotBin {
field: &'static str,
message: String,
},
PotBinTrailingLines {
count: usize,
},
ApotBinParse {
field: &'static str,
line: usize,
token: String,
},
InvalidApotBin {
line: usize,
message: String,
},
InvalidEmeshBin {
message: String,
},
InvalidSpecfunctDat {
message: String,
},
SpecfunctDatInterpolation {
source: SfconvError,
},
SpecfunctDatExafsConvolution {
source: SfconvError,
},
SpecfunctDatXanesConvolution {
source: SfconvError,
},
InvalidGtrBin {
message: String,
},
InvalidChiaBin {
message: String,
},
PhaseBinShape {
field: &'static str,
actual: Vec<usize>,
expected: Vec<usize>,
},
PhaseBinMissing {
field: &'static str,
},
PhaseBinParse {
field: &'static str,
token: String,
},
InvalidPhaseBin {
field: &'static str,
message: String,
},
InvalidXsphRlDat {
field: &'static str,
message: String,
},
PhaseBinTrailingLines {
count: usize,
},
BandSetup {
source: BandError,
},
FeffBinShape {
field: &'static str,
actual: Vec<usize>,
expected: Vec<usize>,
},
FeffBinMissing {
field: &'static str,
},
FeffBinParse {
field: &'static str,
token: String,
},
InvalidFeffBin {
field: &'static str,
message: String,
},
ListDatMissing {
field: &'static str,
},
ListDatParse {
field: &'static str,
line: usize,
token: String,
},
ListDatRowWidth {
line: usize,
actual: usize,
expected: usize,
},
InvalidListDat {
field: &'static str,
message: String,
},
NStarDatMissing {
field: &'static str,
},
NStarDatParse {
field: &'static str,
line: usize,
token: String,
},
NStarDatRowWidth {
line: usize,
actual: usize,
expected: usize,
},
InvalidNStarDat {
field: &'static str,
message: String,
},
XsectDatShape {
field: &'static str,
actual: usize,
expected: usize,
},
XsectDatMissing {
field: &'static str,
},
XsectDatParse {
field: &'static str,
line: usize,
token: String,
},
XsectDatRowWidth {
line: usize,
actual: usize,
expected: usize,
},
InvalidXsectDat {
field: &'static str,
message: String,
},
XsedgeDatShape {
field: &'static str,
actual: usize,
expected: usize,
},
XsedgeDatParse {
field: &'static str,
line: usize,
token: String,
},
XsedgeDatRowWidth {
line: usize,
actual: usize,
expected: &'static str,
},
InvalidXsedgeDat {
field: &'static str,
message: String,
},
AxafsDatShape {
field: &'static str,
actual: usize,
expected: usize,
},
AxafsDatParse {
field: &'static str,
line: usize,
token: String,
},
AxafsDatRowWidth {
line: usize,
actual: usize,
expected: usize,
},
InvalidAxafsDat {
field: &'static str,
message: String,
},
XmuDatShape {
field: &'static str,
actual: usize,
expected: usize,
},
XmuDatParse {
field: &'static str,
line: usize,
token: String,
},
XmuDatRowWidth {
line: usize,
actual: usize,
expected: usize,
},
InvalidXmuDat {
field: &'static str,
message: String,
},
XmulDatShape {
field: &'static str,
actual: Vec<usize>,
expected: Vec<usize>,
},
XmulDatParse {
field: &'static str,
line: usize,
token: String,
},
XmulDatRowWidth {
line: usize,
actual: usize,
expected: usize,
},
InvalidXmulDat {
field: &'static str,
message: String,
},
InvalidRunOutput {
field: &'static str,
message: String,
},
ChiDatShape {
field: &'static str,
actual: usize,
expected: usize,
},
ChiDatParse {
field: &'static str,
line: usize,
token: String,
},
ChiDatRowWidth {
line: usize,
actual: usize,
expected: &'static str,
},
InvalidChiDat {
field: &'static str,
message: String,
},
EelsDatShape {
field: &'static str,
actual: usize,
expected: usize,
},
EelsDatTensorShape {
rows: usize,
cols: usize,
expected_rows: usize,
expected_cols: usize,
},
EelsDatParse {
field: &'static str,
line: usize,
token: String,
},
EelsDatRowWidth {
line: usize,
actual: usize,
expected: &'static str,
},
InvalidEelsDat {
field: &'static str,
message: String,
},
DanesDatShape {
field: &'static str,
actual: usize,
expected: usize,
},
DanesDatParse {
field: &'static str,
line: usize,
token: String,
},
DanesDatRowWidth {
line: usize,
actual: usize,
expected: usize,
},
InvalidDanesDat {
field: &'static str,
message: String,
},
LdosDatShape {
field: &'static str,
rows: usize,
cols: usize,
expected_rows: usize,
expected_cols: &'static str,
},
LdosDatParse {
field: &'static str,
line: usize,
token: String,
},
LdosDatRowWidth {
line: usize,
actual: usize,
expected: &'static str,
},
InvalidLdosDat {
field: &'static str,
message: String,
},
LogDatMissing {
field: &'static str,
},
LogDatParse {
field: &'static str,
line: usize,
token: String,
},
InvalidLogDat {
field: &'static str,
message: String,
},
InvalidMiscDat {
line: usize,
message: String,
},
ComptonDatShape {
field: &'static str,
actual: usize,
expected: usize,
},
ComptonDatParse {
field: &'static str,
line: usize,
token: String,
},
ComptonDatRowWidth {
line: usize,
actual: usize,
expected: usize,
},
InvalidComptonDat {
field: &'static str,
message: String,
},
RhozzpDatShape {
field: &'static str,
actual: usize,
expected: usize,
},
RhozzpDatParse {
field: &'static str,
line: usize,
token: String,
},
RhozzpDatRowWidth {
line: usize,
actual: usize,
expected: usize,
},
InvalidRhozzpDat {
field: &'static str,
message: String,
},
RhorrpDensityShape {
field: &'static str,
rows: usize,
columns: usize,
expected: &'static str,
},
RhorrpDensityLength {
field: &'static str,
actual: usize,
expected: usize,
},
RhorrpDensityParse {
field: &'static str,
line: usize,
token: String,
},
RhorrpDensityRowWidth {
line: usize,
actual: usize,
expected: String,
},
InvalidRhorrpDensity {
field: &'static str,
message: String,
},
InvalidRhorrpDensityBin {
message: String,
},
InvalidRhorrpGgBin {
message: String,
},
RhorrpDensityEvaluation {
source: RhorrpError,
},
JzzpDatShape {
field: &'static str,
rows: usize,
cols: usize,
expected_rows: usize,
expected_cols: usize,
},
JzzpDatMissing {
field: &'static str,
},
JzzpDatParse {
field: &'static str,
line: usize,
token: String,
},
InvalidJzzpDat {
field: &'static str,
message: String,
},
CrpaDatMissing {
field: &'static str,
},
CrpaDatParse {
field: &'static str,
line: usize,
token: String,
},
CrpaDatRowWidth {
line: usize,
actual: usize,
expected: usize,
},
InvalidCrpaDat {
field: &'static str,
message: String,
},
LossDatShape {
field: &'static str,
actual: usize,
expected: usize,
},
LossDatParse {
field: &'static str,
line: usize,
token: String,
},
LossDatRowWidth {
line: usize,
actual: usize,
expected: usize,
},
InvalidLossDat {
field: &'static str,
message: String,
},
BphlDatParse {
field: &'static str,
line: usize,
token: String,
},
BphlDatRowWidth {
line: usize,
actual: usize,
expected: usize,
},
BphlDatRecordCount {
actual: usize,
expected: usize,
},
BphlDatMeshMismatch {
field: &'static str,
line: usize,
actual: f64,
expected: f64,
},
BphlDatValidation {
source: ExchangeError,
},
MpseDatShape {
field: &'static str,
actual: usize,
expected: usize,
},
MpseDatParse {
field: &'static str,
line: usize,
token: String,
},
MpseDatRowWidth {
line: usize,
actual: usize,
expected: &'static str,
},
InvalidMpseDat {
field: &'static str,
message: String,
},
RixsDatShape {
field: &'static str,
rows: usize,
cols: usize,
expected_rows: usize,
expected_cols: &'static str,
},
RixsDatParse {
field: &'static str,
line: usize,
token: String,
},
RixsDatRowWidth {
line: usize,
actual: usize,
expected: &'static str,
},
InvalidRixsDat {
field: &'static str,
message: String,
},
FmsBinShape {
field: &'static str,
actual: Vec<usize>,
expected: Vec<usize>,
},
FmsBinMissing {
field: &'static str,
},
FmsBinParse {
field: &'static str,
token: String,
},
InvalidFmsBin {
field: &'static str,
message: String,
},
FmslBinShape {
field: &'static str,
actual: Vec<usize>,
expected: Vec<usize>,
},
InvalidFmslBin {
field: &'static str,
message: String,
},
XseclBinShape {
field: &'static str,
actual: Vec<usize>,
expected: Vec<usize>,
},
XseclBinMissing {
field: &'static str,
},
XseclBinParse {
field: &'static str,
line: usize,
token: String,
},
XseclBinRowWidth {
line: usize,
actual: usize,
expected: usize,
},
InvalidXseclBin {
field: &'static str,
message: String,
},
FefflBinShape {
field: &'static str,
actual: Vec<usize>,
expected: Vec<usize>,
},
InvalidFefflBin {
field: &'static str,
message: String,
},
PathsDatMissing {
field: &'static str,
},
PathsDatParse {
field: &'static str,
line: usize,
token: String,
},
PathsDatRowWidth {
line: usize,
actual: usize,
expected: usize,
},
InvalidPathsDat {
field: &'static str,
message: String,
},
DymShape {
field: &'static str,
actual: Vec<usize>,
expected: Vec<usize>,
},
DymMissing {
field: &'static str,
},
DymParse {
field: &'static str,
line: usize,
token: String,
},
InvalidDym {
field: &'static str,
message: String,
},
DymTrailingTokens {
count: usize,
},
GridInpMissing {
field: &'static str,
},
GridInpParse {
field: &'static str,
line: usize,
token: String,
},
GridInpRowWidth {
line: usize,
actual: usize,
expected: usize,
},
InvalidGridInp {
field: &'static str,
message: String,
},
ConfigInpMissing {
field: &'static str,
line: usize,
},
ConfigInpParse {
field: &'static str,
line: usize,
token: String,
},
ConfigInpRowWidth {
line: usize,
actual: usize,
expected: usize,
},
InvalidConfigInp {
field: &'static str,
message: String,
},
SpringInpMissing {
field: &'static str,
},
SpringInpParse {
field: &'static str,
line: usize,
token: String,
},
SpringInpRowWidth {
line: usize,
actual: usize,
expected: usize,
},
InvalidSpringInp {
field: &'static str,
message: String,
},
InvalidPadWidth(usize),
PadMarker {
expected: char,
found: char,
},
PadPayload {
payload_len: usize,
unit_len: usize,
},
PadByte {
value: i32,
},
PadIndex {
index: usize,
},
InvalidPolarizationVector {
norm: f64,
},
InvalidPolarizationGeometry {
dot: f64,
},
PadUtf8 {
source: FromUtf8Error,
},
PadChunkUtf8 {
source: Utf8Error,
},
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Codec
InvalidPadValue
Io
IncludeDepth
RecursiveInclude
Parse
Format
PotentialOutputShape
InvalidPotentialOutput
MtdpShape
MtdpLength
MtdpMissing
MtdpParse
InvalidMtdp
MtdpTrailingTokens
PotBinShape
PotBinMissing
PotBinParse
InvalidPotBin
PotBinTrailingLines
ApotBinParse
InvalidApotBin
InvalidEmeshBin
InvalidSpecfunctDat
SpecfunctDatInterpolation
Fields
§
source: SfconvErrorSpecfunctDatExafsConvolution
Fields
§
source: SfconvErrorSpecfunctDatXanesConvolution
Fields
§
source: SfconvErrorInvalidGtrBin
InvalidChiaBin
PhaseBinShape
PhaseBinMissing
PhaseBinParse
InvalidPhaseBin
InvalidXsphRlDat
PhaseBinTrailingLines
BandSetup
FeffBinShape
FeffBinMissing
FeffBinParse
InvalidFeffBin
ListDatMissing
ListDatParse
ListDatRowWidth
InvalidListDat
NStarDatMissing
NStarDatParse
NStarDatRowWidth
InvalidNStarDat
XsectDatShape
XsectDatMissing
XsectDatParse
XsectDatRowWidth
InvalidXsectDat
XsedgeDatShape
XsedgeDatParse
XsedgeDatRowWidth
InvalidXsedgeDat
AxafsDatShape
AxafsDatParse
AxafsDatRowWidth
InvalidAxafsDat
XmuDatShape
XmuDatParse
XmuDatRowWidth
InvalidXmuDat
XmulDatShape
XmulDatParse
XmulDatRowWidth
InvalidXmulDat
InvalidRunOutput
ChiDatShape
ChiDatParse
ChiDatRowWidth
InvalidChiDat
EelsDatShape
EelsDatTensorShape
EelsDatParse
EelsDatRowWidth
InvalidEelsDat
DanesDatShape
DanesDatParse
DanesDatRowWidth
InvalidDanesDat
LdosDatShape
LdosDatParse
LdosDatRowWidth
InvalidLdosDat
LogDatMissing
LogDatParse
InvalidLogDat
InvalidMiscDat
ComptonDatShape
ComptonDatParse
ComptonDatRowWidth
InvalidComptonDat
RhozzpDatShape
RhozzpDatParse
RhozzpDatRowWidth
InvalidRhozzpDat
RhorrpDensityShape
RhorrpDensityLength
RhorrpDensityParse
RhorrpDensityRowWidth
InvalidRhorrpDensity
InvalidRhorrpDensityBin
InvalidRhorrpGgBin
RhorrpDensityEvaluation
Fields
§
source: RhorrpErrorJzzpDatShape
JzzpDatMissing
JzzpDatParse
InvalidJzzpDat
CrpaDatMissing
CrpaDatParse
CrpaDatRowWidth
InvalidCrpaDat
LossDatShape
LossDatParse
LossDatRowWidth
InvalidLossDat
BphlDatParse
BphlDatRowWidth
BphlDatRecordCount
BphlDatMeshMismatch
BphlDatValidation
Fields
§
source: ExchangeErrorMpseDatShape
MpseDatParse
MpseDatRowWidth
InvalidMpseDat
RixsDatShape
RixsDatParse
RixsDatRowWidth
InvalidRixsDat
FmsBinShape
FmsBinMissing
FmsBinParse
InvalidFmsBin
FmslBinShape
InvalidFmslBin
XseclBinShape
XseclBinMissing
XseclBinParse
XseclBinRowWidth
InvalidXseclBin
FefflBinShape
InvalidFefflBin
PathsDatMissing
PathsDatParse
PathsDatRowWidth
InvalidPathsDat
DymShape
DymMissing
DymParse
InvalidDym
DymTrailingTokens
GridInpMissing
GridInpParse
GridInpRowWidth
InvalidGridInp
ConfigInpMissing
ConfigInpParse
ConfigInpRowWidth
InvalidConfigInp
SpringInpMissing
SpringInpParse
SpringInpRowWidth
InvalidSpringInp
InvalidPadWidth(usize)
PadMarker
PadPayload
PadByte
PadIndex
InvalidPolarizationVector
InvalidPolarizationGeometry
PadUtf8
Fields
§
source: FromUtf8ErrorPadChunkUtf8
Trait Implementations§
Source§impl Error for IoError
impl Error for IoError
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 !RefUnwindSafe for IoError
impl !UnwindSafe for IoError
impl Freeze for IoError
impl Send for IoError
impl Sync for IoError
impl Unpin for IoError
impl UnsafeUnpin for IoError
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> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T, U> Imply<T> for U
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