#[non_exhaustive]pub enum ActionError {
ZeroDimension,
EmptyPolynomial,
EmptyMask,
NonCanonicalFieldValue {
field: &'static str,
index: usize,
value: u64,
},
MaskDimensionMismatch {
expected: usize,
actual: usize,
},
StateDimensionMismatch {
expected: usize,
actual: usize,
},
InvalidTransform(CoreError),
}Expand description
Errors produced while validating or evaluating an action.
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.
ZeroDimension
A channel transform cannot target a zero-dimensional state.
EmptyPolynomial
The action omitted its transform polynomial.
EmptyMask
A present mask must contain at least one field value.
NonCanonicalFieldValue
A wire value was not a canonical field representative.
Fields
MaskDimensionMismatch
The optional projection mask did not match the channel dimension.
StateDimensionMismatch
The state did not match the channel dimension.
InvalidTransform(CoreError)
The checked HOP Core transform evaluator rejected the matrix.
Trait Implementations§
Source§impl Clone for ActionError
impl Clone for ActionError
Source§impl Debug for ActionError
impl Debug for ActionError
Source§impl Display for ActionError
impl Display for ActionError
impl Eq for ActionError
Source§impl Error for ActionError
impl Error for ActionError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for ActionError
impl PartialEq for ActionError
impl StructuralPartialEq for ActionError
Auto Trait Implementations§
impl Freeze for ActionError
impl RefUnwindSafe for ActionError
impl Send for ActionError
impl Sync for ActionError
impl Unpin for ActionError
impl UnsafeUnpin for ActionError
impl UnwindSafe for ActionError
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