pub enum RelayParseError {
NotJson,
NotArray,
NoType,
BadShape,
BadEvent,
}Variants§
NotJson
Not valid JSON.
NotArray
Not a JSON array, or empty.
NoType
First element isn’t a string type-tag.
BadShape
The message had the right tag but the wrong arity/field types.
BadEvent
An EVENT message’s event payload didn’t parse as a NostrEvent.
Trait Implementations§
Source§impl Debug for RelayParseError
impl Debug for RelayParseError
Source§impl Display for RelayParseError
impl Display for RelayParseError
impl Eq for RelayParseError
Source§impl PartialEq for RelayParseError
impl PartialEq for RelayParseError
impl StructuralPartialEq for RelayParseError
Auto Trait Implementations§
impl Freeze for RelayParseError
impl RefUnwindSafe for RelayParseError
impl Send for RelayParseError
impl Sync for RelayParseError
impl Unpin for RelayParseError
impl UnsafeUnpin for RelayParseError
impl UnwindSafe for RelayParseError
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.