pub enum InternalReason {
HdrMissing,
HdrMultiValue,
HdrInvalidChars,
TsParse,
TsSkew,
TsLeadingZeros,
TsOverflow,
NonceTooShort,
NonceTooLong,
NonceInvalidChars,
General,
}Expand description
Internal diagnostic reason for errors.
This provides granular error classification for debugging and observability
without changing wire-level behavior. The wire code (AshErrorCode) and
HTTP status remain conformance-locked; InternalReason adds precision
for logs and diagnostics only.
§Reconciliation
| InternalReason | WireCode | http_status |
|---|---|---|
HdrMissing | ASH_VALIDATION_ERROR | 485 |
HdrMultiValue | ASH_VALIDATION_ERROR | 485 |
HdrInvalidChars | ASH_VALIDATION_ERROR | 485 |
TsParse | ASH_TIMESTAMP_INVALID | 482 |
TsSkew | ASH_TIMESTAMP_INVALID | 482 |
TsLeadingZeros | ASH_TIMESTAMP_INVALID | 482 |
TsOverflow | ASH_TIMESTAMP_INVALID | 482 |
NonceTooShort | ASH_VALIDATION_ERROR | 485 |
NonceTooLong | ASH_VALIDATION_ERROR | 485 |
NonceInvalidChars | ASH_VALIDATION_ERROR | 485 |
General | (varies) | (varies) |
Variants§
HdrMissing
Required header is missing
HdrMultiValue
Header has multiple values where single is required
HdrInvalidChars
Header contains control characters or newlines
TsParse
Timestamp could not be parsed as integer
TsSkew
Timestamp outside allowed clock skew
TsLeadingZeros
Timestamp has leading zeros
TsOverflow
Timestamp exceeds maximum bounds
NonceTooShort
Nonce is shorter than minimum required length
NonceTooLong
Nonce exceeds maximum allowed length
NonceInvalidChars
Nonce contains non-hexadecimal characters
General
General/unspecified reason (backward compat for existing error paths)
Trait Implementations§
Source§impl Clone for InternalReason
impl Clone for InternalReason
Source§fn clone(&self) -> InternalReason
fn clone(&self) -> InternalReason
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InternalReason
impl Debug for InternalReason
Source§impl Display for InternalReason
impl Display for InternalReason
Source§impl Hash for InternalReason
impl Hash for InternalReason
Source§impl PartialEq for InternalReason
impl PartialEq for InternalReason
impl Copy for InternalReason
impl Eq for InternalReason
impl StructuralPartialEq for InternalReason
Auto Trait Implementations§
impl Freeze for InternalReason
impl RefUnwindSafe for InternalReason
impl Send for InternalReason
impl Sync for InternalReason
impl Unpin for InternalReason
impl UnsafeUnpin for InternalReason
impl UnwindSafe for InternalReason
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