Enum kitsune_p2p::KitsuneP2pError[][src]

#[non_exhaustive]
pub enum KitsuneP2pError {
    GhostError(GhostError),
    KitsuneError(KitsuneError),
    RoutingSpaceError(Arc<KitsuneSpace>),
    RoutingAgentError(Arc<KitsuneAgent>),
    DecodingError(Box<str>),
    TransportError(TransportError),
    StdIoError(Error),
    Reqwest(Error),
    Bootstrap(Box<str>),
    SystemTime(SystemTimeError),
    TryFromInt(TryFromIntError),
    Other(Box<dyn Error + Send + Sync>),
}
Expand description

KitsuneP2p Error Type.

Variants (Non-exhaustive)

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
GhostError(GhostError)

GhostError

Tuple Fields of GhostError

0: GhostError
KitsuneError(KitsuneError)

Base Kitsune Error

Tuple Fields of KitsuneError

0: KitsuneError
RoutingSpaceError(Arc<KitsuneSpace>)

RoutingSpaceError

Tuple Fields of RoutingSpaceError

0: Arc<KitsuneSpace>
RoutingAgentError(Arc<KitsuneAgent>)

RoutingAgentError

Tuple Fields of RoutingAgentError

0: Arc<KitsuneAgent>
DecodingError(Box<str>)

DecodingError

Tuple Fields of DecodingError

0: Box<str>
TransportError(TransportError)

TransportError

Tuple Fields of TransportError

0: TransportError
StdIoError(Error)

std::io::Error

Tuple Fields of StdIoError

0: Error
Reqwest(Error)

Reqwest crate.

Tuple Fields of Reqwest

0: Error
Bootstrap(Box<str>)

Bootstrap call failed.

Tuple Fields of Bootstrap

0: Box<str>
SystemTime(SystemTimeError)

SystemTime call failed.

Tuple Fields of SystemTime

0: SystemTimeError
TryFromInt(TryFromIntError)

Integer casting failed.

Tuple Fields of TryFromInt

0: TryFromIntError
Other(Box<dyn Error + Send + Sync>)

Other

Tuple Fields of Other

0: Box<dyn Error + Send + Sync>

Implementations

promote a custom error type to a KitsuneP2pError

generate a decoding error from a string

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.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

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.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more

Attaches the current Context to this type, returning a WithContext wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more