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.
Receiving next incoming message returned error
Incoming channel closed (got EOF)
Sending outgoing message resulted in error
Handling incoming message produced critical error
Round timeout exceed when executor was waiting for new messages from other parties
ProceedPanicked(JoinError)Proceed method panicked
State machine proceeding produced critical error
StateMachine’s pick_output method return error
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
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl<E, RE, SE> RefUnwindSafe for Error<E, RE, SE> where
E: RefUnwindSafe,
RE: RefUnwindSafe,
SE: RefUnwindSafe, impl<E, RE, SE> UnwindSafe for Error<E, RE, SE> where
E: UnwindSafe,
RE: UnwindSafe,
SE: UnwindSafe,