Skip to main content

WorkControl

Trait WorkControl 

Source
pub trait WorkControl:
    Debug
    + Send
    + Sync {
    // Required method
    fn proceed(&self) -> bool;
}
Expand description

An optional cooperative work checkpoint. A false result only interrupts the machine; the caller must classify its own actual run authority.

Required Methods§

Source

fn proceed(&self) -> bool

Whether evaluation may continue.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§