pub trait NeighborSource {
// Required method
fn neighbors(
&self,
entity_id: i64,
walk: &GraphWalk,
) -> Result<Vec<EdgeArrival>, AppError>;
}Expand description
Supplies the neighbours of an entity to the walk driver.
Required Methods§
Sourcefn neighbors(
&self,
entity_id: i64,
walk: &GraphWalk,
) -> Result<Vec<EdgeArrival>, AppError>
fn neighbors( &self, entity_id: i64, walk: &GraphWalk, ) -> Result<Vec<EdgeArrival>, AppError>
Returns the neighbours of entity_id honouring walk’s direction,
weight floor and relation filter.
§Errors
Propagates AppError::Database (exit 10) on SQLite query failures.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".