Enum bufkit_data::BufkitDataErr
source · [−]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
Fields
hint: StringThe ID that was provided as a hint.
parsed: StringThe ID that was parsed from the file.
The site id didn’t match the hint when adding.
MismatchedStationNumbers
Fields
hint: StationNumberThe StationNumber number with the original request.
parsed: StationNumberThe StationNumber parsed from the file.
The station numbers didn’t match.
MismatchedInitializationTimes
Fields
hint: NaiveDateTimeThe initialization time that was expected.
parsed: NaiveDateTimeThe inizialization time that was parsed from the file.
Parsed and expected initialization times didn’t match.
Trait Implementations
sourceimpl Debug for BufkitDataErr
impl Debug for BufkitDataErr
sourceimpl Display for BufkitDataErr
impl Display for BufkitDataErr
sourceimpl Error for BufkitDataErr
impl Error for BufkitDataErr
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<AnalysisError> for BufkitDataErr
impl From<AnalysisError> for BufkitDataErr
sourcefn from(err: AnalysisError) -> BufkitDataErr
fn from(err: AnalysisError) -> BufkitDataErr
Converts to this type from the input type.
sourceimpl From<Box<dyn Error + 'static, Global>> for BufkitDataErr
impl From<Box<dyn Error + 'static, Global>> for BufkitDataErr
sourcefn from(err: Box<dyn Error>) -> BufkitDataErr
fn from(err: Box<dyn Error>) -> BufkitDataErr
Converts to this type from the input type.
sourceimpl From<BufkitFileError> for BufkitDataErr
impl From<BufkitFileError> for BufkitDataErr
sourcefn from(err: BufkitFileError) -> BufkitDataErr
fn from(err: BufkitFileError) -> BufkitDataErr
Converts to this type from the input type.
sourceimpl From<Error> for BufkitDataErr
impl From<Error> for BufkitDataErr
sourcefn from(err: Error) -> BufkitDataErr
fn from(err: Error) -> BufkitDataErr
Converts to this type from the input type.
sourceimpl From<Error> for BufkitDataErr
impl From<Error> for BufkitDataErr
sourcefn from(err: Error) -> BufkitDataErr
fn from(err: Error) -> BufkitDataErr
Converts to this type from the input type.
sourceimpl From<ParseError> for BufkitDataErr
impl From<ParseError> for BufkitDataErr
sourcefn from(err: ParseError) -> BufkitDataErr
fn from(err: ParseError) -> BufkitDataErr
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for BufkitDataErr
impl Send for BufkitDataErr
impl Sync for BufkitDataErr
impl Unpin for BufkitDataErr
impl !UnwindSafe for BufkitDataErr
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more