Skip to main content

record_edit

Function record_edit 

Source
pub fn record_edit(content: &[u8], doc_path: &Path, op_kind: &str) -> Recorded
Expand description

Resolve the data directory and record content (the about-to-be-written .zen bytes) as history for the document at doc_path.

Returns a Recorded value: bytes are always the correct bytes to write (possibly with a freshly minted doc-id stamped in), and warning carries any non-fatal error message. This function never panics and never returns an error — all failures are surfaced as warning: Some(...).