Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.
pub trait StorageBackend:
Send
+ Sync
+ 'static {
// Required methods
fn store_run(
&self,
record: &RunRecord,
) -> impl Future<Output = Result<()>> + Send;
fn load_plan(
&self,
agent_id: &str,
) -> impl Future<Output = Result<Option<ExecutionPlan>>> + Send;
fn list_runs(
&self,
agent_id: &str,
) -> impl Future<Output = Result<Vec<RunRecord>>> + Send;
}
Minimal async storage interface required by the adaptive runtime.
store_runfn store_run(
&self,
record: &RunRecord,
) -> impl Future<Output = Result<()>> + Send
Persist one observed run.
load_planfn load_plan(
&self,
agent_id: &str,
) -> impl Future<Output = Result<Option<ExecutionPlan>>> + Send
Load the current execution plan for an agent.
list_runsfn list_runs(
&self,
agent_id: &str,
) -> impl Future<Output = Result<Vec<RunRecord>>> + Send
List stored runs for an agent.
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called “object safety”, so this trait is not object safe.
impl StorageBackend for RedisBackendimpl StorageBackend for RedisBackend
impl StorageBackend for InMemoryBackendimpl StorageBackend for InMemoryBackend