Enum kafka_serde::ErrorKind[][src]

pub enum ErrorKind {
    Io(Error),
    TypeNotSupported(&'static str),
    InvalidBoolEncoding(u8),
    InvalidStringEncoding,
    NotEnoughBytes,
    Custom(String),
}

Errors that may happen when parsing a kafka payload (reader or writer)

Variants

Io(Error)

Wraps an I/O Error. Will only be seen if the write cursors return an I/O error

TypeNotSupported(&'static str)

Trying to serialize to or from a type that is not yet supported

InvalidBoolEncoding(u8)

A boolean was expected, but a value different than 0 or 1 was found

InvalidStringEncoding

A UTF-8 string was expected, but could not decode it.

NotEnoughBytes

The buffer ran out of bytes but we still had more data to deserialize

Custom(String)

Custom errors

Trait Implementations

impl Debug for ErrorKind[src]

impl Display 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, 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.