Skip to main content

VerifyExecutor

Trait VerifyExecutor 

Source
pub trait VerifyExecutor: Sync {
    // Required method
    fn for_each(&self, jobs: usize, run: &(dyn Fn(usize) + Sync));
}
Expand description

Fans independent verification bodies across worker threads. run(i) is called exactly once for every i in 0..jobs, from any thread; the call returns only after every job finished (jobs borrow the caller’s stack). The renderer wires its frame worker pool in through this seam so the recorder crate stays free of threading machinery.

Required Methods§

Source

fn for_each(&self, jobs: usize, run: &(dyn Fn(usize) + Sync))

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§