Enum rustbreak::BreakError []

pub enum BreakError {
    Io(Error),
    Deserialize(()),
    Serialize(Error),
    Format(FromUtf8Error),
    Poison,
    NotFound,
}

The Error type exported by BreakError, usually you only need to check against NotFound, however it might be useful sometimes to get other errors.

Variants

An error returned when doing file operations, this might happen by opening, closing, locking or flushing

This error happens if Bincode cannot deserialize a given file. If you get this error check your database is not corrupt. (This includes non-empty files not created by RustBreak!

This error happens if bincode cannot serialize the given type at runtime

Error when reading a formatted String

Poisoned, you can recover from this by running recover_poison on the database

This simply means your key could not be found in the database

Trait Implementations

impl Debug for BreakError
[src]

[src]

Formats the value using the given formatter.

impl Display for BreakError

Formats the value using the given formatter. Read more

impl Error for BreakError

A short description of the error. Read more

The lower-level cause of this error, if any. Read more

impl From<Error> for BreakError

Performs the conversion.

impl From<()> for BreakError

Performs the conversion.

impl From<Error> for BreakError

Performs the conversion.

impl From<FromUtf8Error> for BreakError

Performs the conversion.

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

[src]

Performs the conversion.