pub trait Quota: Send + Sync {
    fn is_reached(&self) -> bool;
}
Expand description

Specifies a computational quota for executions. The main purpose is to allow to stop algorithm in reaction to external events such as user cancellation, timer, etc.

Required Methods

Returns true when computation should be stopped.

Implementors