#[non_exhaustive]pub enum InPlaceError {
InputLengthExceedsBuffer {
input_len: usize,
buffer_len: usize,
},
LengthOverflow,
OutputTooSmall {
required: usize,
available: usize,
},
StagingTooSmall {
required: usize,
available: usize,
},
OverlappingBuffers,
AddressRangeOverflow,
SecretPolicyUnsupported,
Input(InputError),
PositionOverflow,
InvalidSecretInput,
Backend(BackendFault),
}Expand description
Error returned by a finite-buffer in-place operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InputLengthExceedsBuffer
The caller-declared input prefix exceeds the complete buffer.
Fields
LengthOverflow
The encoded or staging capacity calculation overflowed usize.
OutputTooSmall
Reverse encoding needs more bytes than the complete caller buffer.
StagingTooSmall
Secret decode staging cannot hold the fixed-work candidate output.
Fields
OverlappingBuffers
Caller-visible and private staging byte ranges overlap.
AddressRangeOverflow
A byte range end address cannot be represented by usize.
SecretPolicyUnsupported
The selected compatibility policy is not eligible for secret decode.
Input(InputError)
Strict ordinary validation rejected the encoded input.
PositionOverflow
Absolute ordinary source positions cannot be represented by usize.
InvalidSecretInput
Fixed-work secret validation rejected the encoded input opaquely.
Backend(BackendFault)
An internal backend integrity invariant failed.
Trait Implementations§
Source§impl Clone for InPlaceError
impl Clone for InPlaceError
Source§fn clone(&self) -> InPlaceError
fn clone(&self) -> InPlaceError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for InPlaceError
Source§impl Debug for InPlaceError
impl Debug for InPlaceError
Source§impl Display for InPlaceError
impl Display for InPlaceError
impl Eq for InPlaceError
Source§impl Error for InPlaceError
Available on crate feature std only.
impl Error for InPlaceError
std only.1.30.0 · 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()