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
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
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
Napchart’s api returned an element in a lane > the number of lanes. This is napchart.com’s bad.
You tried to add an element to a lane but the space was already taken. This is your bad.
An error occurred in reqwest.
Tuple Fields of ReqwestError
0: Error
An error occurred in serde_json.
Tuple Fields of SerdeError
0: Error
An IO error occurred.
Tuple Fields of IoError
0: Error
An error occurred parsing a time
Tuple Fields of ChronoParseError
0: ParseError
An error occured parsing an RGB value
Tuple Fields of RgbParseError
0: ParseError
Attempted to set the tag on an unset custom color
Tuple Fields of CustomColorUnset
0: usize
Trait Implementations
Performs the conversion.
Performs the conversion.