pub trait AgentProjection: Send + Sync {
// Required method
fn apply(&self, draft: &ApprovedDraft) -> Result<(), DraftError>;
}Expand description
Repairs runtime projections from a committed receipt without another mutation.
Required Methods§
Sourcefn apply(&self, draft: &ApprovedDraft) -> Result<(), DraftError>
fn apply(&self, draft: &ApprovedDraft) -> Result<(), DraftError>
Applies the native roster and state projection after durable execution.
§Errors
A failed native projection; the receipt remains available to replay.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".