Enum tycho::error::TychoError[][src]

pub enum TychoError {
    Io(Error),
    InvalidIdent {
        found: u8,
        expecting: String,
    },
    StringError(FromUtf8Error),
    Other(String),
    OutdatedPointer,
    InvalidKeyType {
        found: ElementIdent,
    },
    MismatchedType {
        found: ValueIdent,
        expected: ValueIdent,
    },
}

Error regarding a tycho process

Variants

Io(Error)

An std::io::Error was encountered while reading/writing to a or stream/buffer.

InvalidIdent

An invalid identity was found when parsing a tycho ident prefix.

Fields of InvalidIdent

found: u8

The prefix byte found.

expecting: String

The name/type of the expected prefix.

StringError(FromUtf8Error)

An error occurred while parsing a UTF-8 String from bytes.

Other(String)

An unspecified error.

OutdatedPointer

A pointer was referenced, but is no-longer valid as the data may have changed.

InvalidKeyType

A key was mismatched when handling serde.

Fields of InvalidKeyType

found: ElementIdent

The type of element found.

MismatchedType

A type was mismatched when handling serde.

Fields of MismatchedType

found: ValueIdent

The type of element found.

expected: ValueIdent

The type of element expected.

Trait Implementations

impl Debug for TychoError[src]

impl Display for TychoError[src]

impl Error for TychoError[src]

impl Error for TychoError[src]

impl Error for TychoError[src]

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,