#[non_exhaustive]pub enum UnsignedEventError {
SignerMismatch,
}Expand description
Errors raised when signing an UnsignedEvent.
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.
SignerMismatch
The signer’s public key did not match the event author.
Trait Implementations§
Source§impl Clone for UnsignedEventError
impl Clone for UnsignedEventError
Source§fn clone(&self) -> UnsignedEventError
fn clone(&self) -> UnsignedEventError
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 UnsignedEventError
Source§impl Debug for UnsignedEventError
impl Debug for UnsignedEventError
Source§impl Display for UnsignedEventError
impl Display for UnsignedEventError
impl Eq for UnsignedEventError
Source§impl Error for UnsignedEventError
impl Error for UnsignedEventError
1.30.0 · 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<UnsignedEventError> for EventBuilderError
impl From<UnsignedEventError> for EventBuilderError
Source§fn from(source: UnsignedEventError) -> Self
fn from(source: UnsignedEventError) -> Self
Converts to this type from the input type.
Source§impl From<UnsignedEventError> for Nip46Error
Available on crate feature nip46 only.
impl From<UnsignedEventError> for Nip46Error
Available on crate feature
nip46 only.Source§fn from(source: UnsignedEventError) -> Self
fn from(source: UnsignedEventError) -> Self
Converts to this type from the input type.
Source§impl From<UnsignedEventError> for SignerError
impl From<UnsignedEventError> for SignerError
Source§fn from(source: UnsignedEventError) -> Self
fn from(source: UnsignedEventError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for UnsignedEventError
impl PartialEq for UnsignedEventError
impl StructuralPartialEq for UnsignedEventError
Auto Trait Implementations§
impl Freeze for UnsignedEventError
impl RefUnwindSafe for UnsignedEventError
impl Send for UnsignedEventError
impl Sync for UnsignedEventError
impl Unpin for UnsignedEventError
impl UnsafeUnpin for UnsignedEventError
impl UnwindSafe for UnsignedEventError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.