#[non_exhaustive]pub enum CommandErrorKind {
Failed {
code: String,
args: Vec<(&'static str, DiagArg)>,
},
IntegerOverflow,
NonFiniteFloat,
FloatOutOfRange,
DivisionByZero,
Interrupted,
}Expand description
The kind of command failure.
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.
Failed
A code decided by the package and named arguments (no message text; displaying it is the host’s job).
Fields
IntegerOverflow
Integer overflow (treated the same as VmErrorKind::IntegerOverflow).
NonFiniteFloat
A float result became NaN or ±∞ (VmErrorKind::NonFiniteFloat).
FloatOutOfRange
A float does not fit in the range of int (VmErrorKind::FloatOutOfRange).
DivisionByZero
Divided by 0 (VmErrorKind::DivisionByZero).
Interrupted
The command stopped because an interrupt was requested (VmErrorKind::Interrupted).
Trait Implementations§
Source§impl Clone for CommandErrorKind
impl Clone for CommandErrorKind
Source§impl Debug for CommandErrorKind
impl Debug for CommandErrorKind
impl Eq for CommandErrorKind
Source§impl PartialEq for CommandErrorKind
impl PartialEq for CommandErrorKind
impl StructuralPartialEq for CommandErrorKind
Auto Trait Implementations§
impl Forget for CommandErrorKind
impl Freeze for CommandErrorKind
impl Move for CommandErrorKind
impl RefUnwindSafe for CommandErrorKind
impl Send for CommandErrorKind
impl Sync for CommandErrorKind
impl Unpin for CommandErrorKind
impl UnsafeUnpin for CommandErrorKind
impl UnwindSafe for CommandErrorKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more