[]Enum memedb_core::Error

pub enum Error {
    Format,
    Parser,
    EOF,
    Io {
        source: Error,
    },
}

All library functions return a Result with this error type

Variants

Format

This error is returned when the library cannot identify the file type you are attempting to read or write

Parser

This error is returned when the filetype-specific parser encountered an error parsing the file, this is usually caused by corrupted/invalid files or strange encodings

EOF

This error is returned when the file ended unexpectedly, this can be due to an IO error or corrupted data

Io

This error is returned when the OS encounters a problem while trying to read the file

Fields of Io

source: Error

Trait Implementations

impl From<Error> for Error

impl Debug for Error

impl Display for Error

impl Error for Error

Auto Trait Implementations

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl !UnwindSafe for Error

impl !RefUnwindSafe for Error

Blanket Implementations

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 = !

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<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]