pub enum PaymentClaimError {
NotPresent,
Malformed,
PeerIdMismatch,
BadSignature,
}Expand description
Why a claim did not yield a payment address. Every variant means the same thing to a caller — there is no payee here — and they differ only in what to log.
Variants§
NotPresent
The entry carries no payment claim (the ordinary case for a peer predating SPEC §3.4).
Malformed
A field exceeded its cap, or spki / sig was not valid base64.
PeerIdMismatch
SHA-256(spki) did not equal the entry’s peer_id — the claim belongs to a different peer,
or was substituted by a relay.
BadSignature
The key is the peer’s, but the signature does not cover this (peer_id, network_id, address)
— a tampered address, or a claim replayed from another network.
Trait Implementations§
Source§impl Clone for PaymentClaimError
impl Clone for PaymentClaimError
Source§fn clone(&self) -> PaymentClaimError
fn clone(&self) -> PaymentClaimError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PaymentClaimError
Source§impl Debug for PaymentClaimError
impl Debug for PaymentClaimError
Source§impl Display for PaymentClaimError
impl Display for PaymentClaimError
impl Eq for PaymentClaimError
Source§impl Error for PaymentClaimError
impl Error for PaymentClaimError
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 PaymentClaimError
impl PartialEq for PaymentClaimError
impl StructuralPartialEq for PaymentClaimError
Auto Trait Implementations§
impl Freeze for PaymentClaimError
impl RefUnwindSafe for PaymentClaimError
impl Send for PaymentClaimError
impl Sync for PaymentClaimError
impl Unpin for PaymentClaimError
impl UnsafeUnpin for PaymentClaimError
impl UnwindSafe for PaymentClaimError
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