Expand description
Transactional, crash-safe state journaling and manifest recording.
Re-exports§
pub use legacy::convert_legacy_journal;pub use legacy::convert_legacy_journal_bytes;pub use legacy::convert_legacy_journal_bytes_with_policy;pub use legacy::convert_legacy_journal_with_policy;
Modules§
- legacy
- Read-only legacy journal parser supporting revisions 1, 2, and 3
(
CTBMETA1,CTBMETA2,CTBMETA3) with lossless in-memory conversion to standard Document Characters andFileEntityrecords.
Structs§
- Applied
Directory Receipt - Durable identity receipt proving exclusive creation and authorization of a destination directory across crash and resume sessions.
- Journal
Error Record - A persistent record of an item or operation failure stored in the journal.
- Journal
Error Record Payload - Persistent error incident payload bounded by Dc 552..553.
- Journal
Payload - Journal
Reader - Journal
Session Record - Persistent operation session record bounded by Dc 547..548.
- Journal
Snapshot - Summary of an active or completed journal recovered from disk.
- Journal
Warning Record - A persistent record of an operational warning or caveat stored in the journal.
- Journal
Warning Record Payload - Persistent warning incident payload bounded by Dc 554..555.
- Journal
Warning Record String Payload - Persistent warning incident payload with string-only log bounded by Dc 554..555.
- Journal
Writer - Move
Source Record - Durable source inventory and deletion/recovery record persisted in
.cscdesc. - State
Journal - Writer managing the persistent state journal and its companion
.cscdescfile.
Enums§
- Journal
Error Stage - Stage in the copy pipeline where an operation or file access error occurred.
- Journal
Magic - Move
Source Disposition - Durable per-source lifecycle state for multi-file and cross-device move operations.
- Read
Mode - Whether to require a completed operation or return its committed prefix.
Constants§
- ARCHIVE_
MAGIC - ARCHIVE_
MAGIC_ V1 - ARCHIVE_
MAGIC_ V2 - JOURNAL_
MAGIC - JOURNAL_
MAGIC_ V4 - JOURNAL_
MAGIC_ V5 - PLATFORM_
LINUX - PLATFORM_
MACOS - PLATFORM_
OTHER - PLATFORM_
WINDOWS - SESSION_
ENVIRONMENT_ BINDING
Functions§
- convert_
cscarchive1_ to_ dcmstring_ with_ policy - Converts in-memory cscarchive v1 (
CTBCSCA\x01+DcMixed1) bytes to aDcMstringdocument. - convert_
cscarchive2_ to_ dcmstring_ with_ policy - Converts in-memory cscarchive v2 (
CTBCSCA\x02+DcMixed2) bytes to aDcMstringdocument. - convert_
cscarchive_ to_ dcmstring_ with_ policy - Converts in-memory cscarchive bytes (v1 or v2) to a
DcMstringdocument. - convert_
cscjournal_ to_ bytes - Converts in-memory cscjournal bytes to current
DcMixedjournal bytes (CSCJRNL5), or returns version 4+ journal bytes unmodified. - convert_
cscjournal_ to_ bytes_ with_ policy - Converts journal bytes, using
policywhen projecting legacy Dc identities. - convert_
cscjournal_ to_ dcmstring - Converts any in-memory cscjournal bytes (legacy or v4+) to a
DcMstringdocument. - convert_
cscjournal_ to_ dcmstring_ with_ options - Converts journal bytes using
policyfor legacy Dc identity projection andbest_effortfor permissive header/payload recovery. - convert_
cscjournal_ to_ dcmstring_ with_ policy - Converts journal bytes, using
policywhen projecting legacy Dc identities. - current_
platform - dcmstring_
to_ cscarchive - Encodes a
DcMstringintoCscArchive2(CTBCSCA\x02+DcMixed2) bytes. - dcmstring_
to_ cscarchive1 - Encodes a
DcMstringintoCscArchive1(CTBCSCA\x01+DcMixed1) bytes. - dcmstring_
to_ cscarchive2 - Encodes a
DcMstringintoCscArchive2(CTBCSCA\x02+DcMixed2) bytes. - dcmstring_
to_ cscjournal - Encodes a
DcMstringintoCscJournal5(CTBCSCJ\x05+DcMixed2) bytes. - read_
journal_ snapshot - Reads a state journal in strict mode, rolling back to the last valid batch or record.
- read_
journal_ snapshot_ with_ policy - Reads a state journal using the specified [
ctb_formats_dcstring::DcProjectionPolicy], rolling back to the last valid batch or record on crash truncation. - read_
v4_ journal_ snapshot - Reads a v4 native
DcMixedstate journal using [ctb_formats_dcstring::DcDocumentNavigator] without buffering file bodies. Member metadata is retained for projection. - resolve_
journal_ path - Resolves a manifest path or directory into a
.cscjournalfile path.