made-core 0.8.0

Domain core of MADE: entities, value objects, events, ports. No IO.
Documentation
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>;
}