pub enum PayErrorCode {
HttpTransport,
HttpStatus,
ProtocolMalformed,
ProtocolUnknown,
WalletNotFound,
SigningFailed,
UnsupportedChain,
DiscoveryFailed,
InvalidInput,
}Expand description
Error codes for programmatic handling.
Variants§
HttpTransport
HTTP transport error (DNS, TLS, timeout).
HttpStatus
Server returned an unexpected HTTP status.
ProtocolMalformed
Protocol-level error (malformed 402, bad header encoding).
ProtocolUnknown
Could not detect which payment protocol to use.
WalletNotFound
Wallet not found or inaccessible.
SigningFailed
Key decryption or signing failed.
UnsupportedChain
No supported chain/network in the payment requirements.
DiscoveryFailed
Discovery API error.
InvalidInput
Invalid input (e.g. unsupported HTTP method).
Trait Implementations§
Source§impl Clone for PayErrorCode
impl Clone for PayErrorCode
Source§fn clone(&self) -> PayErrorCode
fn clone(&self) -> PayErrorCode
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 PayErrorCode
impl Debug for PayErrorCode
Source§impl PartialEq for PayErrorCode
impl PartialEq for PayErrorCode
impl Copy for PayErrorCode
impl Eq for PayErrorCode
impl StructuralPartialEq for PayErrorCode
Auto Trait Implementations§
impl Freeze for PayErrorCode
impl RefUnwindSafe for PayErrorCode
impl Send for PayErrorCode
impl Sync for PayErrorCode
impl Unpin for PayErrorCode
impl UnsafeUnpin for PayErrorCode
impl UnwindSafe for PayErrorCode
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