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
AlreadyExists
A vault already exists with that path-id
InvalidPath
The provided path is invalid
InvalidName
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.
InvalidCompoents
The combination of selected components threw a runtime incompatibility error
Fields of InvalidCompoents
tt: Option<String> | Optionally the type that is incompatible (if it can be determined) |
FailedSelfTest
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.
FailedInitalise
Failed to initialise lockchain vault handler
FailedCreation
Failed to create a vault for an unknown reason
FailedLoading
Failed to load a vault for an unknown reason
FailedClosing
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]
impl Debug for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl StdError for Error
[src]
impl StdError for Error
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl Display for Error
[src]
impl Display for Error
Auto Trait Implementations
impl Send for VaultError
impl Send for VaultError
impl Sync for VaultError
impl Sync for VaultError