pub enum SealError {
AlreadyInitialized,
NotInitialized,
AlreadyUnsealed,
AlreadySealed,
InvalidConfig {
reason: String,
},
InvalidShare {
reason: String,
},
RecoveryFailed {
reason: String,
},
RootKeyDecryption {
reason: String,
},
Crypto(CryptoError),
Barrier(BarrierError),
Storage(StorageError),
}Expand description
Errors from seal/unseal operations.
Variants§
AlreadyInitialized
The vault has already been initialized.
NotInitialized
The vault has not been initialized yet.
AlreadyUnsealed
The vault is already unsealed.
AlreadySealed
The vault is already sealed.
InvalidConfig
Invalid Shamir configuration parameters.
A submitted unseal share was invalid or corrupted.
RecoveryFailed
Shamir secret recovery failed (not enough shares or corrupted shares).
RootKeyDecryption
Failed to decrypt the root key with the reconstructed unseal key.
Crypto(CryptoError)
A cryptographic operation failed during seal/unseal.
Barrier(BarrierError)
The encryption barrier returned an error during raw storage access.
Storage(StorageError)
The underlying storage backend returned an error.
Trait Implementations§
Source§impl Error for SealError
impl Error for SealError
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<BarrierError> for SealError
impl From<BarrierError> for SealError
Source§fn from(source: BarrierError) -> Self
fn from(source: BarrierError) -> Self
Converts to this type from the input type.
Source§impl From<CryptoError> for SealError
impl From<CryptoError> for SealError
Source§fn from(source: CryptoError) -> Self
fn from(source: CryptoError) -> Self
Converts to this type from the input type.
Source§impl From<StorageError> for SealError
impl From<StorageError> for SealError
Source§fn from(source: StorageError) -> Self
fn from(source: StorageError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SealError
impl RefUnwindSafe for SealError
impl Send for SealError
impl Sync for SealError
impl Unpin for SealError
impl UnwindSafe for SealError
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