pub trait RelationshipSelectionService: Send + Sync {
// Required method
fn select(
&self,
request: &RelationshipSelectionRequest,
) -> Result<CompleteRelationshipSelection, RelationshipSelectionError>;
// Provided method
fn source_snapshots(&self) -> &[SourceSnapshot] { ... }
}Expand description
Trusted adapter seam for complete relationship-based candidate selection.
Required Methods§
Sourcefn select(
&self,
request: &RelationshipSelectionRequest,
) -> Result<CompleteRelationshipSelection, RelationshipSelectionError>
fn select( &self, request: &RelationshipSelectionRequest, ) -> Result<CompleteRelationshipSelection, RelationshipSelectionError>
Selects candidates or reports why the result is not conclusive.
Provided Methods§
Sourcefn source_snapshots(&self) -> &[SourceSnapshot]
fn source_snapshots(&self) -> &[SourceSnapshot]
Exact source snapshots used to construct this service.
The default is intentionally unbound for services used only through a
raw crate::ServiceRegistry; an crate::EvidenceSession rejects it.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".