pub trait BaselineBackend: Send + Sync {
// Required methods
fn capture<'life0, 'life1, 'async_trait>(
&'life0 self,
label: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<String, ActionError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn diff<'life0, 'async_trait>(
&'life0 self,
from: Option<u32>,
to: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<String, ActionError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn list<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<String, ActionError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Optional backend for system-baseline capture + drift detection.
Each method returns a rendered report. capture is a local write (a snapshot
file); diff and list are read-only.
Required Methods§
fn capture<'life0, 'life1, 'async_trait>(
&'life0 self,
label: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<String, ActionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn diff<'life0, 'async_trait>(
&'life0 self,
from: Option<u32>,
to: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<String, ActionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<String, ActionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".