Development Documentation (main branch) - For stable release docs, see docs.rs/eidetica

AsyncWriteCallback

Type Alias AsyncWriteCallback 

Source
pub type AsyncWriteCallback = Arc<dyn for<'a> Fn(&'a Entry, &'a Database, &'a Instance) -> AsyncWriteCallbackFuture<'a> + Send + Sync>;
Expand description

Async callback function type for write operations.

Receives the entry that was written, the database it was written to, and the instance. Returns a boxed future that resolves to a Result. Used for both local and remote write callbacks.

Aliased Typeยง

pub struct AsyncWriteCallback { /* private fields */ }