Enum lockchain_core::errors::VaultError[][src]

pub enum VaultError {
    AlreadyExists,
    InvalidPath,
    InvalidName,
    InvalidCompoents {
        tt: Option<String>,
    },
    FailedSelfTest,
    FailedInitalise,
    FailedCreation,
    FailedLoading,
    FailedClosing,
    // some variants omitted
}

Variants

A vault already exists with that path-id

The provided path is invalid

The provided name is invalid

This usually means the backing storage doesn't support some character in the name which can sometimes occur if the name contains special unicode characters that a filesystem doesn't recognise as valid characters.

The combination of selected components threw a runtime incompatibility error

Fields of InvalidCompoents

Optionally the type that is incompatible (if it can be determined)

Vault failed it's checksum self-test

This is problematic because it also means the vault was unable to correct any errors. Either the backing storage has some serious issues or maybe an external sync process that lockchain can't detect is still working.

Failed to initialise lockchain vault handler

Failed to create a vault for an unknown reason

Failed to load a vault for an unknown reason

Failed to close the vault properly.

This could be because the backing storage is no longer available or permisions to write have been revoked.

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter. Read more

impl StdError for Error
[src]

This method is soft-deprecated. Read more

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

impl Display for Error
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for VaultError

impl Sync for VaultError