pub enum StoreError {
IoError(Error),
EncryptionFailed,
DecryptionFailed,
KeyExists {
name: String,
},
KeyNotFound {
name: String,
},
InvalidFormat,
PermissionDenied,
}Expand description
Errors that can occur during key storage operations.
These errors indicate failures in reading, writing, or managing encrypted key files.
Variants§
IoError(Error)
File system I/O error.
EncryptionFailed
Key encryption failed.
DecryptionFailed
Key decryption failed (likely wrong password).
KeyExists
A key with this name already exists.
KeyNotFound
The requested key does not exist.
InvalidFormat
The key file format is invalid.
PermissionDenied
Insufficient file system permissions.
Implementations§
Source§impl StoreError
impl StoreError
Trait Implementations§
Source§impl Debug for StoreError
impl Debug for StoreError
Source§impl Display for StoreError
impl Display for StoreError
Source§impl Error for StoreError
impl Error for StoreError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error> for StoreError
impl From<Error> for StoreError
Source§impl From<StoreError> for TxGateError
impl From<StoreError> for TxGateError
Source§fn from(source: StoreError) -> Self
fn from(source: StoreError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StoreError
impl !RefUnwindSafe for StoreError
impl Send for StoreError
impl Sync for StoreError
impl Unpin for StoreError
impl !UnwindSafe for StoreError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more