pub struct EvaluationControl { /* private fields */ }Expand description
The run evidence used to classify cooperative evaluator interruption.
This is passed explicitly through checker classification helpers. Its opaque identity prevents another driver’s interruption becoming this run’s stop.
Implementations§
Source§impl EvaluationControl
impl EvaluationControl
Sourcepub fn new(
budget: &Budget,
phase: Phase,
) -> Result<Arc<Self>, HostControlConflict>
pub fn new( budget: &Budget, phase: Phase, ) -> Result<Arc<Self>, HostControlConflict>
Makes an explicit context from the already armed budget and actual phase.
§Errors
The native identity representation is exhausted.
Sourcepub fn enter(
self: &Arc<Self>,
evaluator: &Evaluator,
) -> Result<HostControlScope, HostControlConflict>
pub fn enter( self: &Arc<Self>, evaluator: &Evaluator, ) -> Result<HostControlScope, HostControlConflict>
Installs this phase’s context for evaluator loop checkpoints. Unlimited and unarmed budgets install a no-op owner scope, so another driver cannot replace control while this evaluator is in use.
§Errors
Another driver owns the evaluator’s control registration.
Trait Implementations§
Source§impl Debug for EvaluationControl
impl Debug for EvaluationControl
Source§impl HostControl for EvaluationControl
impl HostControl for EvaluationControl
Auto Trait Implementations§
impl Forget for EvaluationControl
impl Freeze for EvaluationControl
impl Move for EvaluationControl
impl RefUnwindSafe for EvaluationControl
impl Send for EvaluationControl
impl Sync for EvaluationControl
impl Unpin for EvaluationControl
impl UnsafeUnpin for EvaluationControl
impl UnwindSafe for EvaluationControl
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