pub enum NostrRelayError {
Tungstenite(Box<Error>),
Serde(Error),
TokioSend(Box<SendError<NostrClientEvent>>),
SendError,
}Variants§
Trait Implementations§
Source§impl Debug for NostrRelayError
impl Debug for NostrRelayError
Source§impl Display for NostrRelayError
impl Display for NostrRelayError
Source§impl Error for NostrRelayError
impl Error for NostrRelayError
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<Error> for NostrRelayError
impl From<Error> for NostrRelayError
Source§impl From<SendError<NostrClientEvent>> for NostrRelayError
impl From<SendError<NostrClientEvent>> for NostrRelayError
Source§fn from(value: SendError<NostrClientEvent>) -> Self
fn from(value: SendError<NostrClientEvent>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NostrRelayError
impl !RefUnwindSafe for NostrRelayError
impl Send for NostrRelayError
impl Sync for NostrRelayError
impl Unpin for NostrRelayError
impl !UnwindSafe for NostrRelayError
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