Skip to main content

RepackLoadMonitor

Trait RepackLoadMonitor 

Source
pub trait RepackLoadMonitor:
    Send
    + Sync
    + 'static {
    // Required method
    fn should_yield(&self) -> bool;
}
Expand description

Host-load signal consulted at cooperative checkpoints.

Required Methods§

Source

fn should_yield(&self) -> bool

Return true while foreground work should take priority.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§