made-core 0.7.4

Domain core of MADE: entities, value objects, events, ports. No IO.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use async_trait::async_trait;

use crate::error::DomainError;
use crate::ports::PositionedRecord;

/// Delivers one globally positioned ceremony record to an external sink.
#[async_trait]
pub trait CeremonyEventTransportPort: Send + Sync {
    /// Return only after the transport has accepted the record.
    async fn deliver(&self, record: &PositionedRecord) -> Result<(), DomainError>;
}