#[non_exhaustive]pub enum CommunityError {
WrongKind(Kind),
MissingIdentifier,
MalformedModerator,
MalformedRelay,
InvalidPublicKey(PublicKeyError),
InvalidRelayUrl(RelayUrlError),
InvalidImageDim(ImageError),
}Expand description
Errors raised while parsing a CommunityDefinition.
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 was not 34550.
MissingIdentifier
d tag was absent.
MalformedModerator
A p moderator tag was missing the pubkey column.
MalformedRelay
A relay tag was missing its URL column.
InvalidPublicKey(PublicKeyError)
A pubkey value did not parse.
InvalidRelayUrl(RelayUrlError)
A relay URL did not parse.
InvalidImageDim(ImageError)
image[2] failed to parse as ImageDimensions via its
FromStr impl.
Trait Implementations§
Source§impl Debug for CommunityError
impl Debug for CommunityError
Source§impl Display for CommunityError
impl Display for CommunityError
Source§impl Error for CommunityError
impl Error for CommunityError
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()
Auto Trait Implementations§
impl Freeze for CommunityError
impl RefUnwindSafe for CommunityError
impl Send for CommunityError
impl Sync for CommunityError
impl Unpin for CommunityError
impl UnsafeUnpin for CommunityError
impl UnwindSafe for CommunityError
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