pub enum AnchorCodecError {
InvalidContext(&'static str),
InvalidBodyLength,
NonCanonicalCbor(&'static str),
InvalidField(&'static str),
IdempotencyMismatch,
InvalidValidity,
InvalidSignature,
CommitmentMismatch,
InvalidReceipt,
Serialization,
}Expand description
Errors returned before a request can reach authority or persistence code.
Variants§
InvalidContext(&'static str)
The HTTP-bound protocol context is not the exact commitment-only route.
InvalidBodyLength
The body is empty or exceeds the protocol limit.
NonCanonicalCbor(&'static str)
The body is not deterministic RFC 8949 CBOR.
InvalidField(&'static str)
The CBOR shape or an exact field type is invalid.
IdempotencyMismatch
The request’s independently derived idempotency value is wrong.
InvalidValidity
The request is outside the closed validity interval rules.
InvalidSignature
The request signature does not verify over the exact domain.
CommitmentMismatch
A response does not bind the expected request or action commitment.
InvalidReceipt
The nested generic receipt failed its hash, signature, or wire checks.
Serialization
Deterministic serialization failed.
Trait Implementations§
Source§impl Clone for AnchorCodecError
impl Clone for AnchorCodecError
Source§impl Debug for AnchorCodecError
impl Debug for AnchorCodecError
Source§impl Display for AnchorCodecError
impl Display for AnchorCodecError
impl Eq for AnchorCodecError
Source§impl Error for AnchorCodecError
impl Error for AnchorCodecError
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 AnchorCodecError
impl PartialEq for AnchorCodecError
impl StructuralPartialEq for AnchorCodecError
Auto Trait Implementations§
impl Freeze for AnchorCodecError
impl RefUnwindSafe for AnchorCodecError
impl Send for AnchorCodecError
impl Sync for AnchorCodecError
impl Unpin for AnchorCodecError
impl UnsafeUnpin for AnchorCodecError
impl UnwindSafe for AnchorCodecError
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