Enum napchart::ErrorKind[][src]

pub enum ErrorKind {
    NotImplemented,
    InvalidChartShape(String),
    InvalidLane(usizeusize),
    ElementOverlap((u16, u16)(u16, u16)),
    ReqwestError(Error),
    SerdeError(Error),
}

napchart-rs error type

Variants

NotImplemented

Unimplemented function. This is my bad.

InvalidChartShape(String)

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

InvalidLane(usizeusize)

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

ElementOverlap((u16, u16)(u16, u16))

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

ReqwestError(Error)

An error occurred in reqwest.

SerdeError(Error)

An error occurred in serde_json.

Trait Implementations

impl Debug for ErrorKind[src]

impl Display for ErrorKind[src]

impl Error for ErrorKind[src]

impl From<Error> for ErrorKind[src]

impl From<Error> for ErrorKind[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> Instrument 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.