pub enum Error {
Show 18 variants
Keys(Error),
Url(ParseError),
RelayPool(Error),
EventBuilder(Error),
UnsignedEvent(Error),
Secp256k1(Error),
Hex(Error),
Metadata(Error),
Handler(String),
SignerNotConfigured,
NIP04(Error),
NIP46(Error),
JSON(Error),
Generic,
Response(String),
SignerPublicKeyNotFound,
Timeout,
ResponseNotMatchRequest,
}
Expand description
Client
error
Variants§
Keys(Error)
Keys error
Url(ParseError)
Url parse error
RelayPool(Error)
RelayPool
error
EventBuilder(Error)
EventBuilder
error
UnsignedEvent(Error)
Unsigned event error
Secp256k1(Error)
Secp256k1 error
Hex(Error)
Hex error
Metadata(Error)
Metadata error
Handler(String)
Notification Handler error
SignerNotConfigured
Signer not configured
NIP04(Error)
NIP04 error
NIP46(Error)
NIP46 error
JSON(Error)
JSON error
Generic
Generic NIP46 error
Response(String)
NIP46 response error
SignerPublicKeyNotFound
Signer public key not found
Timeout
Timeout
ResponseNotMatchRequest
Response not match to the request
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<Error> for Error
impl From<Error> for Error
source§fn from(source: EventBuilderError) -> Self
fn from(source: EventBuilderError) -> Self
Converts to this type from the input type.
source§impl From<Error> for Error
impl From<Error> for Error
source§fn from(source: RelayPoolError) -> Self
fn from(source: RelayPoolError) -> Self
Converts to this type from the input type.
source§impl From<Error> for Error
impl From<Error> for Error
source§fn from(source: MetadataError) -> Self
fn from(source: MetadataError) -> Self
Converts to this type from the input type.
source§impl From<ParseError> for Error
impl From<ParseError> for Error
source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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