pub async fn write_committed_record<W: RecordWriter, const SLOT: usize>(
writer: &mut W,
target: u32,
bytes: &[u8; SLOT],
) -> Result<(), CommitError<W::Error>>Expand description
Write a record body first and its visibility marker last. The record’s last four bytes are the commit word (shared convention across every journal in this crate).
The caller must not publish the corresponding in-RAM snapshot until this
returns Ok(()). A mount ignores either failure shape because the commit
word remains incomplete.