pub enum EvalError {
UnknownPerformative(String),
UnscopedDialectPerformative(String),
TemplateExpansionFailed {
performative: String,
},
UnknownDialect(String),
MalformedMessage(String),
ShapeViolation(ShapeViolation),
}Expand description
Errors that can occur during message evaluation.
Variants§
UnknownPerformative(String)
The performative is not defined in any installed dialect.
UnscopedDialectPerformative(String)
A custom performative was invoked outside any (lang …) wrapper, so
the message does not name the dialect that defines it (REQ-033).
Normally unreachable from parsed input — the recogniser rejects the form — so this fires for messages built programmatically.
TemplateExpansionFailed
Template expansion failed (e.g. resource bounds exceeded, no matching cond branch).
UnknownDialect(String)
The named dialect is not installed.
MalformedMessage(String)
The message is malformed.
ShapeViolation(ShapeViolation)
The expanded message violates a shape constraint (REQ-223).
Trait Implementations§
impl Eq for EvalError
impl StructuralPartialEq for EvalError
Auto Trait Implementations§
impl Forget for EvalError
impl Freeze for EvalError
impl Move for EvalError
impl RefUnwindSafe for EvalError
impl Send for EvalErrorwhere
RawVecInner: Send,
impl Sync for EvalErrorwhere
RawVecInner: Sync,
impl Unpin for EvalError
impl UnsafeUnpin for EvalError
impl UnwindSafe for EvalErrorwhere
RawVecInner: UnwindSafe,
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