pub enum NipW1Error {
NotPairing,
Transport(NostrEventError),
Key,
Decrypt(Nip44Error),
BadPayload,
}Variants§
NotPairing
The event’s kind isn’t a pairing kind.
Transport(NostrEventError)
The transport layer (id / schnorr) didn’t verify.
Key
A secp key was malformed.
Decrypt(Nip44Error)
NIP-44 decryption failed (not addressed to me / tampered / wrong key).
BadPayload
The decrypted payload wasn’t a valid pairing payload, or the inner tag disagreed with the outer kind.
Trait Implementations§
Source§impl Debug for NipW1Error
impl Debug for NipW1Error
Source§impl Display for NipW1Error
impl Display for NipW1Error
impl Eq for NipW1Error
Source§impl PartialEq for NipW1Error
impl PartialEq for NipW1Error
impl StructuralPartialEq for NipW1Error
Auto Trait Implementations§
impl Freeze for NipW1Error
impl RefUnwindSafe for NipW1Error
impl Send for NipW1Error
impl Sync for NipW1Error
impl Unpin for NipW1Error
impl UnsafeUnpin for NipW1Error
impl UnwindSafe for NipW1Error
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.