Skip to main content

DroneLookup

Trait DroneLookup 

Source
pub(crate) trait DroneLookup: Send + Sync {
    // Required method
    fn graph(
        &self,
        id: &str,
        version: Option<i64>,
    ) -> Result<(DroneGraph, i64), String>;
}
Expand description

Where a Drone block finds the drone it calls.

Required Methods§

Source

fn graph( &self, id: &str, version: Option<i64>, ) -> Result<(DroneGraph, i64), String>

The graph of drone id at saved version (as it is saved now when none), with the number of the version it is (0 for a graph that is no saved version).

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§