pub enum EvalContext {
Watch,
Eval,
}Expand description
Which evaluation regime a KindTieredHandler is gating for.
Watch is the conservative default: no effect ever fires live,
regardless of arming. Eval additionally requires live_effects to be
armed before an effect is allowed through — a deliberate two-key gate
so effects don’t fire just because the caller happens to be in an
engine→ink eval.
Variants§
Watch
Read-only inspection (e.g. a live-inspector “what would this show” probe). Effects never fire live.
Eval
An engine→ink function evaluation that may be permitted to run
live effects if live_effects is armed.
Trait Implementations§
Source§impl Clone for EvalContext
impl Clone for EvalContext
Source§fn clone(&self) -> EvalContext
fn clone(&self) -> EvalContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EvalContext
Source§impl Debug for EvalContext
impl Debug for EvalContext
impl Eq for EvalContext
Source§impl PartialEq for EvalContext
impl PartialEq for EvalContext
impl StructuralPartialEq for EvalContext
Auto Trait Implementations§
impl Freeze for EvalContext
impl RefUnwindSafe for EvalContext
impl Send for EvalContext
impl Sync for EvalContext
impl Unpin for EvalContext
impl UnsafeUnpin for EvalContext
impl UnwindSafe for EvalContext
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