pub enum Context {
Predicate,
Script,
Call,
NotInitialized,
}
Expand description
Runtime context description.
Variants
Predicate
Current context is a predicate verification.
Script
Current context is a script execution.
Call
Current context is under a CALL
scop.e
NotInitialized
No transaction initialized/invalid context.
Implementations
Return true
if the context is external; false
otherwise.
Trait Implementations
Performs the conversion.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Context
impl UnwindSafe for Context
Blanket Implementations
Mutably borrows from an owned value. Read more