#[non_exhaustive]pub enum SanitizationProtectedDecodeError {
Protection {
allocation: ProtectedAllocation,
},
Integrity {
allocation: ProtectedAllocation,
},
Decode(SecretDecodeError),
LengthMismatch {
expected: usize,
actual: usize,
},
ProtectedLength {
allocation: ProtectedAllocation,
},
StateTransition,
}Expand description
Redacted failure from a 2.0 protected sanitization decode.
The error preserves the failed allocation and failure class without retaining input bytes, plaintext, secret addresses, or localized invalid input details.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Protection
Required controls could not be established before decoder work.
Fields
§
allocation: ProtectedAllocationAllocation whose protection setup failed.
Integrity
Canary validation failed for one protected allocation.
Fields
§
allocation: ProtectedAllocationAllocation whose integrity check failed.
Decode(SecretDecodeError)
The fixed-work secret decoder rejected the frame.
LengthMismatch
A valid frame did not produce the required fixed-size output.
ProtectedLength
An upstream protected constructor reported an inconsistent length.
Fields
§
allocation: ProtectedAllocationAllocation whose protected length was inconsistent.
StateTransition
A protected destination could not be transferred after initialization.
Trait Implementations§
impl Copy for SanitizationProtectedDecodeError
impl Eq for SanitizationProtectedDecodeError
Source§impl Error for SanitizationProtectedDecodeError
Available on crate feature std only.
impl Error for SanitizationProtectedDecodeError
Available on crate feature
std only.1.30.0 · 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()
impl StructuralPartialEq for SanitizationProtectedDecodeError
Auto Trait Implementations§
impl Freeze for SanitizationProtectedDecodeError
impl RefUnwindSafe for SanitizationProtectedDecodeError
impl Send for SanitizationProtectedDecodeError
impl Sync for SanitizationProtectedDecodeError
impl Unpin for SanitizationProtectedDecodeError
impl UnsafeUnpin for SanitizationProtectedDecodeError
impl UnwindSafe for SanitizationProtectedDecodeError
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