#[non_exhaustive]
pub enum BadStateMachineReason {
ProtocolFinishedButNoResult,
MissingStateMachine,
}Available on crate feature
async-runtime only.Expand description
Reason why StateMachine implementation looks buggy
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.
ProtocolFinishedButNoResult
StateMachine::is_finished returned true,
but StateMachine::pick_output returned None
MissingStateMachine
StateMachine is missing, probably because the Proceed method panicked.
Trait Implementations
sourceimpl Debug for BadStateMachineReason
impl Debug for BadStateMachineReason
sourceimpl Display for BadStateMachineReason
impl Display for BadStateMachineReason
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.
Auto Trait Implementations
impl RefUnwindSafe for BadStateMachineReason
impl Send for BadStateMachineReason
impl Sync for BadStateMachineReason
impl Unpin for BadStateMachineReason
impl UnwindSafe for BadStateMachineReason
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