pub enum RustyDHTError {
PacketParseError(Error),
PacketSerializationError(Error),
GeneralError(Error),
ConntrackError(Error),
SocketSendError(Error),
SocketRecvError(Error),
TimeoutError(Error),
ShutdownError(Error),
BuilderMissingFieldError(&'static str),
BuilderInvalidComboError(&'static str),
}
Variants§
PacketParseError(Error)
PacketSerializationError(Error)
GeneralError(Error)
ConntrackError(Error)
SocketSendError(Error)
SocketRecvError(Error)
TimeoutError(Error)
ShutdownError(Error)
This error is a hack for signaling shutdown. Don’t use unless you’re sure you know what you’re doing.
BuilderMissingFieldError(&'static str)
Indicates that the Message type you’re trying to build requires more information.
BuilderInvalidComboError(&'static str)
Indicates that the builder is in an invalid/ambiguous state to build the desired Message type.
Trait Implementations§
Source§impl Debug for RustyDHTError
impl Debug for RustyDHTError
Source§impl Display for RustyDHTError
impl Display for RustyDHTError
Source§impl Error for RustyDHTError
impl Error for RustyDHTError
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 RustyDHTError
impl From<Error> for RustyDHTError
Auto Trait Implementations§
impl Freeze for RustyDHTError
impl !RefUnwindSafe for RustyDHTError
impl Send for RustyDHTError
impl Sync for RustyDHTError
impl Unpin for RustyDHTError
impl !UnwindSafe for RustyDHTError
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