1 2 3 4 5 6 7
use crate::entities::MetricsSnapshot; use crate::error::DomainError; /// Reads the same in-process registry an operational metrics recorder writes. pub trait MetricsSnapshotPort: Send + Sync { fn snapshot(&self) -> Result<MetricsSnapshot, DomainError>; }