Trait mentat_db::TransactWatcher
[−]
[src]
pub trait TransactWatcher { fn datom(&mut self, op: OpType, e: Entid, a: Entid, v: &TypedValue); fn done(&mut self, t: &Entid, schema: &Schema) -> Result<()>; }
Required Methods
fn datom(&mut self, op: OpType, e: Entid, a: Entid, v: &TypedValue)
fn done(&mut self, t: &Entid, schema: &Schema) -> Result<()>
Only return an error if you want to interrupt the transact! Called with the schema prior to the transact -- any attributes or attribute changes transacted during this transact are not reflected in the schema.
Implementors
impl<'a> TransactWatcher for InProgressCacheTransactWatcher<'a>
impl TransactWatcher for InProgressObserverTransactWatcher