Trait ChangeHandler

Source
pub trait ChangeHandler<E: Entity> {
    // Required method
    fn handle_change<'a>(
        &'a self,
        trx: &'a mut CtxTransaction<'_>,
        key: &'a E::Key,
        new: &'a mut E,
        track_ctx: &'a E::TrackCtx,
    ) -> BoxFuture<'a, Result<()>>;
}

Required Methods§

Source

fn handle_change<'a>( &'a self, trx: &'a mut CtxTransaction<'_>, key: &'a E::Key, new: &'a mut E, track_ctx: &'a E::TrackCtx, ) -> BoxFuture<'a, Result<()>>

Implementors§

Source§

impl<E: Entity, T> ChangeHandler<E> for T
where T: for<'a> Fn(&'a mut CtxTransaction<'_>, &'a E::Key, &'a mut E, &'a E::TrackCtx) -> BoxFuture<'a, Result<()>>,