pub enum Contract {
InvalidValue(Violation),
PreconditionFailed,
ContractBroken,
UnknownInteraction,
}Expand description
A contract error, ridl §10.2. Derived from the contract and never declared.
Variants§
InvalidValue(Violation)
INVALID_VALUE: a payload breaks its typl constraints.
PreconditionFailed
PRECONDITION_FAILED: a require clause evaluates to false.
ContractBroken
CONTRACT_BROKEN: an ensure clause evaluates to false.
UnknownInteraction
UNKNOWN_INTERACTION: the peers disagree on an interface number or an
ordinal.
Trait Implementations§
impl Copy for Contract
impl Eq for Contract
impl StructuralPartialEq for Contract
Auto Trait Implementations§
impl Freeze for Contract
impl RefUnwindSafe for Contract
impl Send for Contract
impl Sync for Contract
impl Unpin for Contract
impl UnsafeUnpin for Contract
impl UnwindSafe for Contract
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