[][src]Enum binjs::io::TokenReaderError

pub enum TokenReaderError {
    UnexpectedEndOfStream(String),
    NotInDictionary(String),
    DuplicateInDictionary(String),
    ReadError(Error),
    BadLength {
        expected: usize,
        got: usize,
    },
    BadHeader,
    BadHeaderName(Vec<u8>),
    BadCompression(Error),
    EndOffsetError {
        start: u64,
        expected: u64,
        found: u64,
        description: String,
    },
    BadStringIndex(u32),
    BadDictionaryIndex {
        index: u32,
        dictionary: SharedString,
    },
    BadStringDecoder,
    InvalidValue,
    BadKindIndex(u32),
    Encoding(FromUtf8Error),
    EmptyNodeName,
    EmptyFieldName,
    EmptyVariant,
    EmptyBool,
    EmptyString,
    EmptyList,
    EmptyNumber,
    BadEnumVariant,
    GenericError(String),
    DictionarySwitchingError(SharedString),
}

Variants

UnexpectedEndOfStream(String)
NotInDictionary(String)
DuplicateInDictionary(String)
ReadError(Error)
BadLength

Fields of BadLength

expected: usizegot: usize
BadHeader
BadHeaderName(Vec<u8>)
BadCompression(Error)
EndOffsetError

Fields of EndOffsetError

start: u64expected: u64found: u64description: String
BadStringIndex(u32)
BadDictionaryIndex

Fields of BadDictionaryIndex

index: u32dictionary: SharedString
BadStringDecoder
InvalidValue
BadKindIndex(u32)
Encoding(FromUtf8Error)
EmptyNodeName
EmptyFieldName
EmptyVariant
EmptyBool
EmptyString
EmptyList
EmptyNumber
BadEnumVariant
GenericError(String)
DictionarySwitchingError(SharedString)

Methods

impl TokenReaderError[src]

pub fn invalid_value<T>(value: &T) -> TokenReaderError where
    T: Debug
[src]

Trait Implementations

impl Debug for TokenReaderError[src]

impl Into<Error> for TokenReaderError[src]

Auto Trait Implementations

impl !RefUnwindSafe for TokenReaderError

impl !Send for TokenReaderError

impl !Sync for TokenReaderError

impl Unpin for TokenReaderError

impl !UnwindSafe for TokenReaderError

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> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[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>, 
[src]