Enum napchart::ErrorKind[][src]

pub enum ErrorKind {
    InvalidChartShape(String),
    InvalidChartColor(String),
    InvalidLane(usize, usize),
    ElementOverlap((u16, u16), (u16, u16)),
    ReqwestError(Error),
    SerdeError(Error),
    IoError(Error),
    ChronoParseError(ParseError),
    RgbParseError(ParseError),
    CustomColorUnset(usize),
}
Expand description

napchart-rs error type

Variants

InvalidChartShape

Napchart’s api returned a chartShape that we dont understand. This is either my bad or napchart.com’s bad.

Tuple Fields of InvalidChartShape

0: String
InvalidChartColor

Napchart’s api returned a chartColor that we dont understand. This is either my bad or napchart.com’s bad.

Tuple Fields of InvalidChartColor

0: String
InvalidLane

Napchart’s api returned an element in a lane > the number of lanes. This is napchart.com’s bad.

Tuple Fields of InvalidLane

0: usize1: usize
ElementOverlap

You tried to add an element to a lane but the space was already taken. This is your bad.

Tuple Fields of ElementOverlap

0: (u16, u16)1: (u16, u16)
ReqwestError

An error occurred in reqwest.

Tuple Fields of ReqwestError

0: Error
SerdeError

An error occurred in serde_json.

Tuple Fields of SerdeError

0: Error
IoError

An IO error occurred.

Tuple Fields of IoError

0: Error
ChronoParseError

An error occurred parsing a time

Tuple Fields of ChronoParseError

0: ParseError
RgbParseError

An error occured parsing an RGB value

Tuple Fields of RgbParseError

0: ParseError
CustomColorUnset

Attempted to set the tag on an unset custom color

Tuple Fields of CustomColorUnset

0: usize

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.