Skip to main content

HostControl

Trait HostControl 

Source
pub trait HostControl:
    Send
    + Sync
    + Debug {
    // Required method
    fn check(&self) -> Result<(), Interrupted>;
}
Expand description

Optional run control, separate from specification-visible host operations.

Drivers install this around the evaluator-backed phases they can classify, including controlled fresh binding after structural construction. Calls are amortized across evaluator loop work; implementations should inspect an existing signal rather than sample the clock or resident memory.

Required Methods§

Source

fn check(&self) -> Result<(), Interrupted>

Checks whether evaluation must return to its driver.

§Errors

Interrupted when the driver has requested interruption.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§