pub enum Error {
Show 18 variants
CorruptHeader,
UnsupportedFormatVersion {
artifact: ArtifactKind,
found: u32,
supported: u32,
},
CorruptRecord,
CorruptVaultRecord(String),
InvalidKey,
NotFound(String),
AlreadyExists(String),
InvalidPath(String),
InvalidInput(String),
InvalidKeyMaterial(String),
InvalidOperation(String),
VaultUnavailable(String),
LockUnavailable(String),
Configuration(String),
UnsupportedHostPath(String),
Io(String),
SecurityLimitExceeded(String),
Truncated,
}Expand description
Error type returned by lockbox operations.
Variants§
CorruptHeader
The public header could not be parsed or authenticated.
UnsupportedFormatVersion
A valid artifact uses a native format this build cannot read.
CorruptRecord
An encrypted record or decoded page failed validation.
CorruptVaultRecord(String)
Stored vault metadata failed validation.
InvalidKey
The supplied key was wrong or authentication failed.
NotFound(String)
A requested logical path was not found.
AlreadyExists(String)
A caller tried to add an entry where one already exists.
InvalidPath(String)
A caller supplied an invalid logical or host path.
InvalidInput(String)
A caller supplied invalid non-path input.
InvalidKeyMaterial(String)
Key bytes, key text, or a key file could not be decoded as the expected key type.
InvalidOperation(String)
The requested operation conflicts with the current lockbox state.
A vault-backed operation could not use the local vault or open cache.
A lockbox or vault write lock could not be acquired.
Configuration(String)
A required host or process configuration value is missing or invalid.
UnsupportedHostPath(String)
A host filesystem path cannot be imported by the requested operation.
Io(String)
Filesystem or platform IO failed.
SecurityLimitExceeded(String)
A configured safety limit rejected the operation.
Truncated
The input ended before a complete lockbox structure could be read.
Implementations§
Trait Implementations§
impl Eq for Error
Source§impl Error for Error
impl Error for Error
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()