#[non_exhaustive]pub enum DocumentRecoveryError {
Show 17 variants
InvalidKey,
InvalidBinding,
InvalidPolicy,
InvalidEnvelope,
UnsupportedVersion,
KeyIdMismatch,
RandomnessUnavailable,
EncryptionFailed,
AuthenticationFailed,
InvalidPayload,
NonPortableModel,
CapacityExceeded,
InvalidInventory,
SourceChanged,
DestinationConflict,
DestinationChanged,
Repository(PolyglotError),
}Expand description
Typed failures that omit document contents, identifiers, keys and paths.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidKey
Key identifiers and key material must meet the fixed contract.
InvalidBinding
The application namespace is missing, oversized or non-portable.
InvalidPolicy
A policy field exceeded its documented bound.
InvalidEnvelope
The serialized envelope is malformed or exceeds its configured bound.
UnsupportedVersion
The envelope version is not implemented by this release.
KeyIdMismatch
The caller supplied a different rotation key.
Random nonce generation was unavailable.
EncryptionFailed
Encryption failed without exposing document contents.
AuthenticationFailed
Key, binding, nonce, ciphertext or tag did not authenticate.
InvalidPayload
Authenticated plaintext violated the versioned portable schema.
NonPortableModel
The model is not portable across the supported document adapters.
CapacityExceeded
A configured document or byte ceiling was exhausted.
InvalidInventory
An adapter violated stable, strictly increasing inventory order.
SourceChanged
The source changed between the two export observations.
DestinationConflict
Existing destination content is extra or differs from the snapshot.
DestinationChanged
Destination content changed while restoration was running.
Repository(PolyglotError)
A repository operation failed; its source remains available to callers.
Trait Implementations§
Source§impl Debug for DocumentRecoveryError
impl Debug for DocumentRecoveryError
Source§impl Display for DocumentRecoveryError
impl Display for DocumentRecoveryError
Source§impl Error for DocumentRecoveryError
impl Error for DocumentRecoveryError
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()
Source§impl From<PolyglotError> for DocumentRecoveryError
impl From<PolyglotError> for DocumentRecoveryError
Source§fn from(error: PolyglotError) -> Self
fn from(error: PolyglotError) -> Self
Auto Trait Implementations§
impl Freeze for DocumentRecoveryError
impl RefUnwindSafe for DocumentRecoveryError
impl Send for DocumentRecoveryError
impl Sync for DocumentRecoveryError
impl Unpin for DocumentRecoveryError
impl UnsafeUnpin for DocumentRecoveryError
impl UnwindSafe for DocumentRecoveryError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more