#[non_exhaustive]pub enum EventIdError {
Hex(HexError),
InvalidLength(usize),
}Expand description
Errors raised when constructing an EventId.
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.
Hex(HexError)
The hex representation could not be decoded.
InvalidLength(usize)
The byte slice was not exactly EVENT_ID_SIZE long.
Trait Implementations§
Source§impl Clone for EventIdError
impl Clone for EventIdError
Source§fn clone(&self) -> EventIdError
fn clone(&self) -> EventIdError
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 moreimpl Copy for EventIdError
Source§impl Debug for EventIdError
impl Debug for EventIdError
Source§impl Display for EventIdError
impl Display for EventIdError
Source§impl Error for EventIdError
impl Error for EventIdError
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 DeletionError
impl From<EventIdError> for DeletionError
Source§fn from(source: EventIdError) -> Self
fn from(source: EventIdError) -> Self
Converts to this type from the input type.
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<EventIdError> for FromBech32Error
impl From<EventIdError> for FromBech32Error
Source§fn from(source: EventIdError) -> Self
fn from(source: EventIdError) -> Self
Converts to this type from the input type.
Source§impl From<EventIdError> for CommentError
impl From<EventIdError> for CommentError
Source§fn from(source: EventIdError) -> Self
fn from(source: EventIdError) -> Self
Converts to this type from the input type.
Source§impl From<EventIdError> for GroupError
impl From<EventIdError> for GroupError
Source§fn from(source: EventIdError) -> Self
fn from(source: EventIdError) -> Self
Converts to this type from the input type.
Source§impl From<EventIdError> for LabelError
impl From<EventIdError> for LabelError
Source§fn from(source: EventIdError) -> Self
fn from(source: EventIdError) -> Self
Converts to this type from the input type.
Source§impl From<EventIdError> for Nip34Error
impl From<EventIdError> for Nip34Error
Source§fn from(source: EventIdError) -> Self
fn from(source: EventIdError) -> Self
Converts to this type from the input type.
Source§impl From<EventIdError> for CalendarError
impl From<EventIdError> for CalendarError
Source§fn from(source: EventIdError) -> Self
fn from(source: EventIdError) -> Self
Converts to this type from the input type.
Source§impl From<EventIdError> for LiveError
impl From<EventIdError> for LiveError
Source§fn from(source: EventIdError) -> Self
fn from(source: EventIdError) -> Self
Converts to this type from the input type.
Source§impl From<EventIdError> for WikiError
impl From<EventIdError> for WikiError
Source§fn from(source: EventIdError) -> Self
fn from(source: EventIdError) -> Self
Converts to this type from the input type.
Source§impl From<EventIdError> for ReportError
impl From<EventIdError> for ReportError
Source§fn from(source: EventIdError) -> Self
fn from(source: EventIdError) -> Self
Converts to this type from the input type.
Source§impl From<EventIdError> for Nip60Error
Available on crate feature nip44 only.
impl From<EventIdError> for Nip60Error
Available on crate feature
nip44 only.Source§fn from(source: EventIdError) -> Self
fn from(source: EventIdError) -> Self
Converts to this type from the input type.
Source§impl From<EventIdError> for Nip61Error
Available on crate feature nip44 only.
impl From<EventIdError> for Nip61Error
Available on crate feature
nip44 only.Source§fn from(source: EventIdError) -> Self
fn from(source: EventIdError) -> Self
Converts to this type from the input type.
Source§impl From<EventIdError> for ZapGoalError
impl From<EventIdError> for ZapGoalError
Source§fn from(source: EventIdError) -> Self
fn from(source: EventIdError) -> Self
Converts to this type from the input type.
Source§impl From<EventIdError> for HighlightError
impl From<EventIdError> for HighlightError
Source§fn from(source: EventIdError) -> Self
fn from(source: EventIdError) -> Self
Converts to this type from the input type.
Source§impl From<EventIdError> for PollError
impl From<EventIdError> for PollError
Source§fn from(source: EventIdError) -> Self
fn from(source: EventIdError) -> Self
Converts to this type from the input type.
Source§impl From<EventIdError> for Nip90Error
impl From<EventIdError> for Nip90Error
Source§fn from(source: EventIdError) -> Self
fn from(source: EventIdError) -> Self
Converts to this type from the input type.
Source§impl From<EventIdError> for ListingError
impl From<EventIdError> for ListingError
Source§fn from(source: EventIdError) -> Self
fn from(source: EventIdError) -> Self
Converts to this type from the input type.
Source§impl From<EventIdError> for ChatError
impl From<EventIdError> for ChatError
Source§fn from(source: EventIdError) -> Self
fn from(source: EventIdError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EventIdError
impl RefUnwindSafe for EventIdError
impl Send for EventIdError
impl Sync for EventIdError
impl Unpin for EventIdError
impl UnsafeUnpin for EventIdError
impl UnwindSafe for EventIdError
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