pub trait PregelProgramProvider: Send + Sync {
// Required method
fn signature(&self) -> &PregelSignature;
// Provided method
fn halt(&self, _superstep: u64, _stats: &PregelStats) -> bool { ... }
}Expand description
A Pregel-style vertex program plugin.
Detailed init / compute / combine signatures will land alongside
the Pregel executor in uni-algo during M5c. The trait is in place so
plugin authors can build against the surface from M1; full integration
follows.
Required Methods§
Sourcefn signature(&self) -> &PregelSignature
fn signature(&self) -> &PregelSignature
Static signature.
Provided Methods§
Sourcefn halt(&self, _superstep: u64, _stats: &PregelStats) -> bool
fn halt(&self, _superstep: u64, _stats: &PregelStats) -> bool
Optional global halt condition consulted between supersteps.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".