Skip to main content

RuntimeRefResolver

Trait RuntimeRefResolver 

Source
pub trait RuntimeRefResolver:
    Debug
    + Send
    + Sync {
    // Required method
    fn resolve(
        &self,
        runtime_ref: &str,
    ) -> Result<Option<Value>, RuntimeRefResolverError>;
}
Expand description

Trait implemented by greentic-start to resolve runtime:// URIs against the live EnvironmentRuntime snapshot. Implementations MUST be cheap to call (they are invoked on every greentic:runtime-config/get).

Required Methods§

Source

fn resolve( &self, runtime_ref: &str, ) -> Result<Option<Value>, RuntimeRefResolverError>

Resolve a single runtime:// URI. Returns Ok(None) when the URI parses cleanly but is not bound in the current snapshot — the host import maps this to ConfigError::NotFound.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§