Enum round_based::async_runtime::Error
source · [−]#[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),
}async-runtime only.Expand description
Represents error that can occur while executing protocol
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
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
sourceimpl<E, RE, SE> Error for Error<E, RE, SE> where
E: Error + 'static,
RE: Error + 'static,
SE: Error + 'static,
impl<E, RE, SE> Error for Error<E, RE, SE> where
E: Error + 'static,
RE: Error + 'static,
SE: Error + 'static,
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl<E, RE, SE> From<BadStateMachineReason> for Error<E, RE, SE>
impl<E, RE, SE> From<BadStateMachineReason> for Error<E, RE, SE>
sourcefn from(reason: BadStateMachineReason) -> Self
fn from(reason: BadStateMachineReason) -> Self
Converts to this type from the input type.
sourceimpl<E, RE, SE> From<InternalError> for Error<E, RE, SE>
impl<E, RE, SE> From<InternalError> for Error<E, RE, SE>
sourcefn from(err: InternalError) -> Self
fn from(err: InternalError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl<E, RE, SE> !RefUnwindSafe for Error<E, RE, SE>
impl<E, RE, SE> Send for Error<E, RE, SE> where
E: Send,
RE: Send,
SE: Send,
impl<E, RE, SE> Sync for Error<E, RE, SE> where
E: Sync,
RE: Sync,
SE: Sync,
impl<E, RE, SE> Unpin for Error<E, RE, SE> where
E: Unpin,
RE: Unpin,
SE: Unpin,
impl<E, RE, SE> !UnwindSafe for Error<E, RE, SE>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more