aboutsummaryrefslogtreecommitdiffstats
path: root/src/remake/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/remake/mod.rs')
-rw-r--r--src/remake/mod.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/remake/mod.rs b/src/remake/mod.rs
index 67fa77b..342eab3 100644
--- a/src/remake/mod.rs
+++ b/src/remake/mod.rs
@@ -297,6 +297,19 @@ pub(crate) trait Host: Clone + Send + Sync + 'static {
T: Send + 'static,
E: From<StoreError> + Send + 'static;
+ /// [`commit_doc`](Self::commit_doc) for `user`, who asked through the API: the
+ /// change names them (`replica::Writer`), as rules by path judge it
+ /// (`access::rules`).
+ fn commit_doc_for<T, E, F>(
+ &self,
+ user: Option<String>,
+ f: F,
+ ) -> impl Future<Output = Result<T, E>> + Send
+ where
+ F: FnOnce(&mut Transaction<'_>) -> Result<T, E> + Send + 'static,
+ T: Send + 'static,
+ E: From<StoreError> + Send + 'static;
+
/// What a replay does with writes a newer one superseded (`--superseded-writes`).
fn superseded(&self) -> Superseded;