pub enum AshErrorCode {
InvalidContext,
ContextExpired,
ReplayDetected,
IntegrityFailed,
EndpointMismatch,
ModeViolation,
UnsupportedContentType,
MalformedRequest,
CanonicalizationFailed,
}Expand description
Error codes for ASH protocol.
These codes are stable and should not change between versions.
Variants§
InvalidContext
Context not found in store
ContextExpired
Context has expired
ReplayDetected
Context was already consumed (replay detected)
IntegrityFailed
Proof does not match expected value
EndpointMismatch
Binding does not match expected endpoint
ModeViolation
Mode requirements not met
UnsupportedContentType
Content type not supported
MalformedRequest
Request format is invalid
CanonicalizationFailed
Payload cannot be canonicalized
Implementations§
Source§impl AshErrorCode
impl AshErrorCode
Trait Implementations§
Source§impl Clone for AshErrorCode
impl Clone for AshErrorCode
Source§fn clone(&self) -> AshErrorCode
fn clone(&self) -> AshErrorCode
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 AshErrorCode
impl Debug for AshErrorCode
Source§impl<'de> Deserialize<'de> for AshErrorCode
impl<'de> Deserialize<'de> for AshErrorCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for AshErrorCode
impl Display for AshErrorCode
Source§impl Hash for AshErrorCode
impl Hash for AshErrorCode
Source§impl PartialEq for AshErrorCode
impl PartialEq for AshErrorCode
Source§impl Serialize for AshErrorCode
impl Serialize for AshErrorCode
impl Copy for AshErrorCode
impl Eq for AshErrorCode
impl StructuralPartialEq for AshErrorCode
Auto Trait Implementations§
impl Freeze for AshErrorCode
impl RefUnwindSafe for AshErrorCode
impl Send for AshErrorCode
impl Sync for AshErrorCode
impl Unpin for AshErrorCode
impl UnwindSafe for AshErrorCode
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