pub enum BufkitDataErr {
Show 15 variants
SoundingAnalysis(AnalysisError),
SoundingBufkit(BufkitFileError),
IO(Error),
Database(Error),
StrumError(ParseError),
GeneralError(String),
NotInIndex,
NotEnoughData,
MissingValidTime,
MissingStationData,
KnownArchiveError(&'static str),
LogicError(&'static str),
MismatchedIDs {
hint: String,
parsed: String,
},
MismatchedStationNumbers {
hint: StationNumber,
parsed: StationNumber,
},
MismatchedInitializationTimes {
hint: NaiveDateTime,
parsed: NaiveDateTime,
},
}Expand description
Error from the archive interface.
Variants§
SoundingAnalysis(AnalysisError)
Error forwarded from sounding-analysis
SoundingBufkit(BufkitFileError)
Error forwarded from sounding-bufkit
IO(Error)
Error forwarded from std
Database(Error)
Database error
StrumError(ParseError)
Error forwarded from the strum crate
GeneralError(String)
General error with any cause information erased and replaced by a string
NotInIndex
File not found in the index.
NotEnoughData
Not enough data to complete the task.
MissingValidTime
Sounding was missing a valid time
MissingStationData
Missing station information.
KnownArchiveError(&'static str)
An error that is known and hard coded into the library.
LogicError(&'static str)
There was an internal logic error.
MismatchedIDs
The site id didn’t match the hint when adding.
Fields
MismatchedStationNumbers
The station numbers didn’t match.
Fields
hint: StationNumberThe StationNumber number with the original request.
parsed: StationNumberThe StationNumber parsed from the file.
MismatchedInitializationTimes
Parsed and expected initialization times didn’t match.
Fields
hint: NaiveDateTimeThe initialization time that was expected.
parsed: NaiveDateTimeThe inizialization time that was parsed from the file.
Trait Implementations§
Source§impl Debug for BufkitDataErr
impl Debug for BufkitDataErr
Source§impl Display for BufkitDataErr
impl Display for BufkitDataErr
Source§impl Error for BufkitDataErr
impl Error for BufkitDataErr
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<AnalysisError> for BufkitDataErr
impl From<AnalysisError> for BufkitDataErr
Source§fn from(err: AnalysisError) -> BufkitDataErr
fn from(err: AnalysisError) -> BufkitDataErr
Source§impl From<BufkitFileError> for BufkitDataErr
impl From<BufkitFileError> for BufkitDataErr
Source§fn from(err: BufkitFileError) -> BufkitDataErr
fn from(err: BufkitFileError) -> BufkitDataErr
Source§impl From<Error> for BufkitDataErr
impl From<Error> for BufkitDataErr
Source§fn from(err: Error) -> BufkitDataErr
fn from(err: Error) -> BufkitDataErr
Source§impl From<Error> for BufkitDataErr
impl From<Error> for BufkitDataErr
Source§fn from(err: Error) -> BufkitDataErr
fn from(err: Error) -> BufkitDataErr
Source§impl From<ParseError> for BufkitDataErr
impl From<ParseError> for BufkitDataErr
Source§fn from(err: ParseError) -> BufkitDataErr
fn from(err: ParseError) -> BufkitDataErr
Auto Trait Implementations§
impl Freeze for BufkitDataErr
impl !RefUnwindSafe for BufkitDataErr
impl Send for BufkitDataErr
impl Sync for BufkitDataErr
impl Unpin for BufkitDataErr
impl !UnwindSafe for BufkitDataErr
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
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>
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>
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