[][src]Enum ub::deserialize::Error

pub enum Error {
    VersionNotSupported,
    MetadataIncomplete,
    MetadataWrong,
    HeaderTooLarge,
    HeaderUnexpectedlySmall,
    PathLengthTooLong,
    FileMetadataIncomplete,
    Reader(Error),
    InvalidUTF8,
}

Supporting error struct for parse() and the versions functions. Contains all parsing related errors.

Variants

VersionNotSupported

The version is not supported by the parse() function.

MetadataIncomplete

Signals some metadata is missing or incomplete. This is often the case when the file is smaller than the base meta size.

MetadataWrong

Metadata is in some way out of boundaries, such as the file path length size being above 8.

HeaderTooLarge

Header is too large to fit into memory. This limitation might be removed, but would probably cause severe slowdowns (having to seek in the file to get any header data)

HeaderUnexpectedlySmall

File is smaller than what header_size suggests it is.

PathLengthTooLong

Path takes more memory than can be pointed to.

FileMetadataIncomplete

If the metadata for the file is incomplete, usually from outside manipulation (gone wrong). Occurs when more data is expected.

Reader(Error)

An error occured while trying to read from the supplied reader.

InvalidUTF8

Path contains invalid UTF8. This limitation should be removed in the future

Trait Implementations

impl Debug for Error[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, 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.