#[non_exhaustive]pub enum AssuredEncodeError {
Assurance(AssuranceError),
Protection(ProtectionError),
Encode(SecretEncodeError),
Cleanup(CleanupError),
}Expand description
Redacted assured encode failure.
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.
Assurance(AssuranceError)
Token or context evidence is stale.
Protection(ProtectionError)
Allocation-specific protection is unavailable or stale.
Encode(SecretEncodeError)
Secret encoder rejected a public bound or internal state.
Cleanup(CleanupError)
Cleanup transferred the consumed allocation to quarantine or tombstone.
Trait Implementations§
Source§impl Clone for AssuredEncodeError
impl Clone for AssuredEncodeError
Source§fn clone(&self) -> AssuredEncodeError
fn clone(&self) -> AssuredEncodeError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AssuredEncodeError
Source§impl Debug for AssuredEncodeError
impl Debug for AssuredEncodeError
Source§impl Display for AssuredEncodeError
impl Display for AssuredEncodeError
impl Eq for AssuredEncodeError
Source§impl Error for AssuredEncodeError
Available on crate feature std only.
impl Error for AssuredEncodeError
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()
Source§impl PartialEq for AssuredEncodeError
impl PartialEq for AssuredEncodeError
impl StructuralPartialEq for AssuredEncodeError
Auto Trait Implementations§
impl Freeze for AssuredEncodeError
impl RefUnwindSafe for AssuredEncodeError
impl Send for AssuredEncodeError
impl Sync for AssuredEncodeError
impl Unpin for AssuredEncodeError
impl UnsafeUnpin for AssuredEncodeError
impl UnwindSafe for AssuredEncodeError
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