pub enum ValidationError {
R1RecursivePerformative {
performatives: Vec<String>,
},
R2ResourceBoundsInvalid {
field: &'static str,
value: u32,
},
R2FuelExhausted,
R3CoreOverride {
performatives: Vec<String>,
},
R4SignatureInvalid,
R5Violation {
errors: Vec<String>,
},
CausalViolation {
violation: CausalViolation,
blame: ViolationError,
},
ShapeViolation {
violation: ShapeViolation,
blame: ViolationError,
},
MalformedMessage {
reason: String,
},
MalformedDialect {
reason: String,
},
}Expand description
Validation errors from the pipeline (ADR-002).
Variants§
R1RecursivePerformative
R2ResourceBoundsInvalid
R2FuelExhausted
R3CoreOverride
R4SignatureInvalid
R5Violation
R5 shape/protocol well-formedness violation (REQ-208, REQ-222).
CausalViolation
Causal protocol violation (REQ-231, step 6a).
ShapeViolation
Shape constraint violation (REQ-231, step 6b).
MalformedMessage
MalformedDialect
Trait Implementations§
Source§impl Clone for ValidationError
impl Clone for ValidationError
Source§impl Debug for ValidationError
impl Debug for ValidationError
Source§impl Display for ValidationError
impl Display for ValidationError
impl Eq for ValidationError
Source§impl Error for ValidationError
Available on crate feature std only.
impl Error for ValidationError
Available on crate feature
std only.1.30.0 · 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 ValidationError
impl PartialEq for ValidationError
impl StructuralPartialEq for ValidationError
Auto Trait Implementations§
impl Forget for ValidationError
impl Freeze for ValidationErrorwhere
*const u8 is !null: Freeze,
PhantomData<String>: Freeze,
&'static str: Freeze,
PhantomData<u8>: Freeze,
PhantomData<BlameEntry>: Freeze,
impl Move for ValidationError
impl RefUnwindSafe for ValidationError
impl Send for ValidationError
impl Sync for ValidationErrorwhere
RawVecInner: Sync,
impl Unpin for ValidationError
impl UnsafeUnpin for ValidationErrorwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
&'static str: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<BlameEntry>: UnsafeUnpin,
impl UnwindSafe for ValidationError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.