Enum round_based::dev::AsyncSimulationError
source · [−]#[non_exhaustive]
pub enum AsyncSimulationError<SM: StateMachine> {
ProtocolExecution(Error<SM::Err, RecvError, SendError<Msg<SM::MessageBody>>>),
ProtocolExecutionPanicked(JoinError),
SimulationExhausted,
}Available on crate feature
dev only.Expand description
Possible errors that async simulation can be resulted in
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.
ProtocolExecution(Error<SM::Err, RecvError, SendError<Msg<SM::MessageBody>>>)
Protocol execution error
ProtocolExecutionPanicked(JoinError)
Protocol execution produced a panic
SimulationExhausted
Simulation ran twice
Trait Implementations
sourceimpl<SM: Debug + StateMachine> Debug for AsyncSimulationError<SM> where
SM::Err: Debug,
SM::MessageBody: Debug,
Available on crate feature async-runtime only.
impl<SM: Debug + StateMachine> Debug for AsyncSimulationError<SM> where
SM::Err: Debug,
SM::MessageBody: Debug,
Available on crate feature
async-runtime only.Auto Trait Implementations
impl<SM> !RefUnwindSafe for AsyncSimulationError<SM>
impl<SM> Send for AsyncSimulationError<SM> where
<SM as StateMachine>::Err: Send,
<SM as StateMachine>::MessageBody: Send,
impl<SM> Sync for AsyncSimulationError<SM> where
<SM as StateMachine>::Err: Sync,
<SM as StateMachine>::MessageBody: Sync,
impl<SM> Unpin for AsyncSimulationError<SM> where
<SM as StateMachine>::Err: Unpin,
<SM as StateMachine>::MessageBody: Unpin,
impl<SM> !UnwindSafe for AsyncSimulationError<SM>
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