Skip to main content

Backend

Trait Backend 

Source
pub trait Backend {
    // Required method
    fn render(&self, env: &Env) -> Result<Vec<Manifest>, RenderError>;
}
Expand description

The morphism. Stateless by convention — backend impls hold only their config (e.g. namespace defaults, label conventions), not state derived from the env.

Required Methods§

Source

fn render(&self, env: &Env) -> Result<Vec<Manifest>, RenderError>

Render the env. Each domain handled by this backend produces zero-or-more manifests; unhandled domains return RenderError::Unsupported so the caller can decide whether to fail-soft or fail-hard.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§