pub enum RelayError {
Show 17 variants
Config(ConfigError),
BitcoinRpc(BitcoinRpcError),
Nostr(NostrError),
Validation(ValidationError),
Network(NetworkError),
Io(Error),
UrlParse(ParseError),
Json(Error),
Http(Error),
WebSocket(Error),
Bitcoin(Error),
HexDecode(FromHexError),
NostrKey(Error),
NostrEvent(Error),
NostrEventBuilder(Error),
AddrParse(AddrParseError),
Other(String),
}
Expand description
Main error type for the bitcoin-nostr-relay library
Variants§
Config(ConfigError)
BitcoinRpc(BitcoinRpcError)
Nostr(NostrError)
Validation(ValidationError)
Network(NetworkError)
Io(Error)
UrlParse(ParseError)
Json(Error)
Http(Error)
WebSocket(Error)
Bitcoin(Error)
HexDecode(FromHexError)
NostrKey(Error)
NostrEvent(Error)
NostrEventBuilder(Error)
AddrParse(AddrParseError)
Other(String)
Trait Implementations§
Source§impl Debug for RelayError
impl Debug for RelayError
Source§impl Display for RelayError
impl Display for RelayError
Source§impl Error for RelayError
impl Error for RelayError
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<AddrParseError> for RelayError
impl From<AddrParseError> for RelayError
Source§fn from(source: AddrParseError) -> Self
fn from(source: AddrParseError) -> Self
Converts to this type from the input type.
Source§impl From<BitcoinRpcError> for RelayError
impl From<BitcoinRpcError> for RelayError
Source§fn from(source: BitcoinRpcError) -> Self
fn from(source: BitcoinRpcError) -> Self
Converts to this type from the input type.
Source§impl From<ConfigError> for RelayError
impl From<ConfigError> for RelayError
Source§fn from(source: ConfigError) -> Self
fn from(source: ConfigError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for RelayError
impl From<Error> for RelayError
Source§impl From<Error> for RelayError
impl From<Error> for RelayError
Source§impl From<Error> for RelayError
impl From<Error> for RelayError
Source§impl From<Error> for RelayError
impl From<Error> for RelayError
Source§impl From<Error> for RelayError
impl From<Error> for RelayError
Source§impl From<Error> for RelayError
impl From<Error> for RelayError
Source§impl From<Error> for RelayError
impl From<Error> for RelayError
Source§impl From<Error> for RelayError
impl From<Error> for RelayError
Source§impl From<Error> for RelayError
impl From<Error> for RelayError
Source§impl From<FromHexError> for RelayError
impl From<FromHexError> for RelayError
Source§fn from(source: FromHexError) -> Self
fn from(source: FromHexError) -> Self
Converts to this type from the input type.
Source§impl From<NetworkError> for RelayError
impl From<NetworkError> for RelayError
Source§fn from(source: NetworkError) -> Self
fn from(source: NetworkError) -> Self
Converts to this type from the input type.
Source§impl From<NostrError> for RelayError
impl From<NostrError> for RelayError
Source§fn from(source: NostrError) -> Self
fn from(source: NostrError) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for RelayError
impl From<ParseError> for RelayError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<ValidationError> for RelayError
impl From<ValidationError> for RelayError
Source§fn from(source: ValidationError) -> Self
fn from(source: ValidationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for RelayError
impl !RefUnwindSafe for RelayError
impl Send for RelayError
impl Sync for RelayError
impl Unpin for RelayError
impl !UnwindSafe for RelayError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more