Enum rustydht_lib::errors::RustyDHTError[][src]

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)

Tuple Fields

0: Error

PacketSerializationError(Error)

Tuple Fields

0: Error

GeneralError(Error)

Tuple Fields

0: Error

ConntrackError(Error)

Tuple Fields

0: Error

SocketSendError(Error)

Tuple Fields

0: Error

SocketRecvError(Error)

Tuple Fields

0: Error

TimeoutError(Error)

Tuple Fields

0: Error

ShutdownError(Error)

Tuple Fields

0: 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)

Tuple Fields

0: &'static str

Indicates that the Message type you’re trying to build requires more information.

BuilderInvalidComboError(&'static str)

Tuple Fields

0: &'static str

Indicates that the builder is in an invalid/ambiguous state to build the desired Message type.

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.