#[non_exhaustive]pub enum WebBookmarkError {
WrongKind(Kind),
MissingIdentifier,
InvalidTimestamp(TimestampError),
}Expand description
Errors raised while parsing a NIP-B0 event.
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.
WrongKind(Kind)
Event kind is not 39701.
MissingIdentifier
d tag missing.
InvalidTimestamp(TimestampError)
Wrapped timestamp parser error.
Trait Implementations§
Source§impl Debug for WebBookmarkError
impl Debug for WebBookmarkError
Source§impl Display for WebBookmarkError
impl Display for WebBookmarkError
Source§impl Error for WebBookmarkError
impl Error for WebBookmarkError
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<TimestampError> for WebBookmarkError
impl From<TimestampError> for WebBookmarkError
Source§fn from(source: TimestampError) -> Self
fn from(source: TimestampError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WebBookmarkError
impl RefUnwindSafe for WebBookmarkError
impl Send for WebBookmarkError
impl Sync for WebBookmarkError
impl Unpin for WebBookmarkError
impl UnsafeUnpin for WebBookmarkError
impl UnwindSafe for WebBookmarkError
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