Enum bufkit_data::BufkitDataErr[][src]

pub enum BufkitDataErr {
    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,
    },
}

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 of MismatchedIDs

hint: String

The ID that was provided as a hint.

parsed: String

The ID that was parsed from the file.

MismatchedStationNumbers

The station numbers didn’t match.

Fields of MismatchedStationNumbers

hint: StationNumber

The StationNumber number with the original request.

parsed: StationNumber

The StationNumber parsed from the file.

MismatchedInitializationTimes

Parsed and expected initialization times didn’t match.

Fields of MismatchedInitializationTimes

hint: NaiveDateTime

The initialization time that was expected.

parsed: NaiveDateTime

The inizialization time that was parsed from the file.

Trait Implementations

impl Debug for BufkitDataErr[src]

impl Display for BufkitDataErr[src]

impl Error for BufkitDataErr[src]

impl From<AnalysisError> for BufkitDataErr[src]

impl From<Box<dyn Error + 'static, Global>> for BufkitDataErr[src]

impl From<BufkitFileError> for BufkitDataErr[src]

impl From<Error> for BufkitDataErr[src]

impl From<Error> for BufkitDataErr[src]

impl From<ParseError> for BufkitDataErr[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.