Enum holochain_p2p::HolochainP2pError[][src]

#[non_exhaustive]
pub enum HolochainP2pError {
    GhostError(GhostError),
    RoutingDnaError(DnaHash),
    RoutingAgentError(AgentPubKey),
    OtherKitsuneP2pError(KitsuneP2pError),
    SerializedBytesError(SerializedBytesError),
    InvalidP2pMessage(String),
    Other(Box<dyn Error + Send + Sync>),
}
Expand description

Error type for Holochain P2p.

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
RoutingDnaError(DnaHash)

RoutingDnaError

Tuple Fields of RoutingDnaError

0: DnaHash
RoutingAgentError(AgentPubKey)

RoutingAgentError

Tuple Fields of RoutingAgentError

0: AgentPubKey
OtherKitsuneP2pError(KitsuneP2pError)

OtherKitsuneP2pError

Tuple Fields of OtherKitsuneP2pError

0: KitsuneP2pError
SerializedBytesError(SerializedBytesError)

SerializedBytesError

Tuple Fields of SerializedBytesError

0: SerializedBytesError
InvalidP2pMessage(String)

Invalid P2p Message

Tuple Fields of InvalidP2pMessage

0: String
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 TransportError

construct an invalid p2p message error variant

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.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

TODO: once 1.33.0 is the minimum supported compiler version, remove Any::type_id_compat and use StdAny::type_id instead. https://github.com/rust-lang/rust/issues/27745 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