pub enum ContractViolation {
UnproducedKey {
consumer: String,
key: String,
},
DuplicateWrite {
agents: Vec<String>,
key: String,
},
OrphanedOutput {
producer: String,
key: String,
},
}Expand description
Contract violation detected during static analysis.
Variants§
UnproducedKey
A consumer reads a key that no producer writes.
Fields
DuplicateWrite
Multiple agents write to the same key (race condition risk).
Fields
OrphanedOutput
A producer writes to a key that no consumer reads (dead output).
Trait Implementations§
Source§impl Clone for ContractViolation
impl Clone for ContractViolation
Source§fn clone(&self) -> ContractViolation
fn clone(&self) -> ContractViolation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContractViolation
impl Debug for ContractViolation
Source§impl PartialEq for ContractViolation
impl PartialEq for ContractViolation
impl StructuralPartialEq for ContractViolation
Auto Trait Implementations§
impl Freeze for ContractViolation
impl RefUnwindSafe for ContractViolation
impl Send for ContractViolation
impl Sync for ContractViolation
impl Unpin for ContractViolation
impl UnwindSafe for ContractViolation
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