#[non_exhaustive]pub enum SecretDecodeError {
InputTooLarge {
input_len: usize,
maximum_encoded_len: usize,
},
OutputFull {
required: usize,
available: usize,
},
OverlappingBuffers,
AddressRangeOverflow,
UnsupportedPolicy,
InvalidInput,
LengthOverflow,
AllocationFailed,
Failed,
Complete,
}Expand description
Opaque error returned by a bounded secret decode frame.
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.
InputTooLarge
The public cumulative encoded length exceeds the frame limit.
Fields
OutputFull
Caller-provided storage cannot hold the declared decoded capacity.
OverlappingBuffers
Private staging overlaps encoded input or final output.
AddressRangeOverflow
A byte-range end address cannot be represented by usize.
UnsupportedPolicy
The codec permits a compatibility form excluded from secret decoding.
InvalidInput
Fixed-work validation rejected the input without localized details.
LengthOverflow
Capacity or source-position arithmetic overflowed.
AllocationFailed
A preallocated heap frame could not reserve its complete storage.
Failed
The state previously failed and is absorbing.
Complete
The state has already completed successfully.
Trait Implementations§
Source§impl Clone for SecretDecodeError
impl Clone for SecretDecodeError
Source§fn clone(&self) -> SecretDecodeError
fn clone(&self) -> SecretDecodeError
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 SecretDecodeError
Source§impl Debug for SecretDecodeError
impl Debug for SecretDecodeError
Source§impl Display for SecretDecodeError
impl Display for SecretDecodeError
impl Eq for SecretDecodeError
Source§impl Error for SecretDecodeError
Available on crate feature std only.
impl Error for SecretDecodeError
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 SecretDecodeError
impl PartialEq for SecretDecodeError
impl StructuralPartialEq for SecretDecodeError
Auto Trait Implementations§
impl Freeze for SecretDecodeError
impl RefUnwindSafe for SecretDecodeError
impl Send for SecretDecodeError
impl Sync for SecretDecodeError
impl Unpin for SecretDecodeError
impl UnsafeUnpin for SecretDecodeError
impl UnwindSafe for SecretDecodeError
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