Enum round_based::async_runtime::Error[][src]

#[non_exhaustive]
pub enum Error<E, RE, SE> {
    Recv(RE),
    RecvEof,
    Send(SE),
    HandleIncoming(E),
    HandleIncomingTimeout(E),
    ProceedPanicked(JoinError),
    Proceed(E),
    Finish(E),
    Exhausted,
    BadStateMachine(BadStateMachineReason),
    InternalError(InternalError),
}
This is supported on crate feature async-runtime only.
Expand description

Represents error that can occur while executing protocol

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.
Recv(RE)

Receiving next incoming message returned error

RecvEof

Incoming channel closed (got EOF)

Send(SE)

Sending outgoing message resulted in error

HandleIncoming(E)

Handling incoming message produced critical error

HandleIncomingTimeout(E)

Round timeout exceed when executor was waiting for new messages from other parties

ProceedPanicked(JoinError)

Proceed method panicked

Proceed(E)

State machine proceeding produced critical error

Finish(E)

StateMachine’s pick_output method return error

Exhausted

AsyncProtocol already executed protocol (or at least, tried to) and tired. You need to construct new executor!

BadStateMachine(BadStateMachineReason)

Buggy StateMachine implementation

InternalError(InternalError)

Buggy AsyncProtocol implementation!

If you’ve got this error, please, report bug.

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.