pub enum NostrEventError {
BadField(&'static str),
BadEncoding,
IdMismatch,
Sig(NostrKeyError),
BadContent,
}Variants§
BadField(&'static str)
A required wire field was missing or the wrong type.
BadEncoding
hex / length decode failure on a NIP-01 field.
IdMismatch
The recomputed NIP-01 id did not match the event’s id.
Sig(NostrKeyError)
The schnorr signature did not verify, or a secp key was malformed.
BadContent
The content did not parse back into a JSON object (wire event).
Trait Implementations§
Source§impl Debug for NostrEventError
impl Debug for NostrEventError
Source§impl Display for NostrEventError
impl Display for NostrEventError
impl Eq for NostrEventError
Source§impl PartialEq for NostrEventError
impl PartialEq for NostrEventError
impl StructuralPartialEq for NostrEventError
Auto Trait Implementations§
impl Freeze for NostrEventError
impl RefUnwindSafe for NostrEventError
impl Send for NostrEventError
impl Sync for NostrEventError
impl Unpin for NostrEventError
impl UnsafeUnpin for NostrEventError
impl UnwindSafe for NostrEventError
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.