pub trait Affinity: Send + Sync {
// Required method
fn matches(
&self,
requirements: &AffinityRequirements,
candidate: &NodeInfo,
) -> bool;
}Expand description
Evaluates candidate nodes without I/O or scheduling decisions.
Required Methods§
Sourcefn matches(
&self,
requirements: &AffinityRequirements,
candidate: &NodeInfo,
) -> bool
fn matches( &self, requirements: &AffinityRequirements, candidate: &NodeInfo, ) -> bool
Evaluates a node snapshot; implementations choose which fields to inspect.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".