pub trait Mutation {
// Required methods
fn intent(&self) -> Intent;
fn applied(&mut self, id: u64);
}Expand description
A result that can be written: what Engine::apply needs from it and
tells it.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl Mutation for Answer
A written answer records the intent it wrote and the history entry.
Only a mutating answer reaches Apply: a Planned<Answer> is built
from a mutating intent, so the query variants are unreachable here.