[][src]Enum acid_store::Error

pub enum Error {
    AlreadyExists,
    NotFound,
    Password,
    Locked,
    Corrupt,
    UnsupportedFormat,
    KeyType,
    FileType,
    InvalidPath,
    NotEmpty,
    NotDirectory,
    NotFile,
    Serialize,
    Deserialize,
    InvalidData,
    Io(Error),
    Store(Error),
    // some variants omitted
}

The error type for operations with a repository.

This type can be converted From and Into an io::Error for compatibility with types from std::io like Read, Write, and Seek. Even if the payload of the io::Error cannot be downcast to a value of this type, it will be converted to Error::Io.

Variants

AlreadyExists

A resource already exists.

NotFound

A resource was not found.

Password

The provided password was invalid.

Locked

The repository is locked.

Corrupt

The repository is corrupt.

UnsupportedFormat

This format is not supported by this version of the library.

KeyType

The provided key type does not match the data in the repository.

FileType

This file type is not supported.

InvalidPath

The provided file path is invalid.

NotEmpty

The directory is not empty.

NotDirectory

The file is not a directory.

NotFile

The file is not a regular file.

Serialize

A value could not be serialized.

Deserialize

A value could not be deserialized.

InvalidData

Ciphertext verification failed or data is otherwise invalid.

Io(Error)

An I/O error occurred.

Store(Error)

An error occurred with the data store.

This wraps the DataStore::Error provided by the data store.

Trait Implementations

impl Debug for Error[src]

impl Display for Error[src]

impl Error for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

Auto Trait Implementations

impl !RefUnwindSafe for Error

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl !UnwindSafe for Error

Blanket Implementations

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

impl<T> AsFail for T where
    T: Fail, 

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

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

impl<E> Fail for E where
    E: 'static + Error + Send + Sync

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

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.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,