#[non_exhaustive]pub enum ThreadError {
NotEventTag(String),
MissingEventId,
InvalidEventId(EventIdError),
InvalidRelay(RelayUrlError),
InvalidMarker(NoteMarkerError),
InvalidAuthor(PublicKeyError),
}Expand description
Errors that decoding strict-mode (i.e. fail-fast) NIP-10 references can
produce. Currently only used by EventReference::from_tag.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NotEventTag(String)
The tag head was not e.
MissingEventId
The tag had no event id.
InvalidEventId(EventIdError)
The event id did not parse.
InvalidRelay(RelayUrlError)
The relay hint did not parse.
InvalidMarker(NoteMarkerError)
The marker did not parse.
InvalidAuthor(PublicKeyError)
The author hint did not parse.
Trait Implementations§
Source§impl Clone for ThreadError
impl Clone for ThreadError
Source§fn clone(&self) -> ThreadError
fn clone(&self) -> ThreadError
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 moreSource§impl Debug for ThreadError
impl Debug for ThreadError
Source§impl Display for ThreadError
impl Display for ThreadError
Source§impl Error for ThreadError
impl Error for ThreadError
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 From<EventIdError> for ThreadError
impl From<EventIdError> for ThreadError
Source§fn from(source: EventIdError) -> Self
fn from(source: EventIdError) -> Self
Converts to this type from the input type.
Source§impl From<NoteMarkerError> for ThreadError
impl From<NoteMarkerError> for ThreadError
Source§fn from(source: NoteMarkerError) -> Self
fn from(source: NoteMarkerError) -> Self
Converts to this type from the input type.
Source§impl From<PublicKeyError> for ThreadError
impl From<PublicKeyError> for ThreadError
Source§fn from(source: PublicKeyError) -> Self
fn from(source: PublicKeyError) -> Self
Converts to this type from the input type.
Source§impl From<RelayUrlError> for ThreadError
impl From<RelayUrlError> for ThreadError
Source§fn from(source: RelayUrlError) -> Self
fn from(source: RelayUrlError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ThreadError
impl RefUnwindSafe for ThreadError
impl Send for ThreadError
impl Sync for ThreadError
impl Unpin for ThreadError
impl UnsafeUnpin for ThreadError
impl UnwindSafe for ThreadError
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