Module journal

Module journal 

Source
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 and FileEntity records.

Structs§

AppliedDirectoryReceipt
Durable identity receipt proving exclusive creation and authorization of a destination directory across crash and resume sessions.
JournalErrorRecord
A persistent record of an item or operation failure stored in the journal.
JournalErrorRecordPayload
Persistent error incident payload bounded by Dc 552..553.
JournalPayload
JournalReader
JournalSessionRecord
Persistent operation session record bounded by Dc 547..548.
JournalSnapshot
Summary of an active or completed journal recovered from disk.
JournalWarningRecord
A persistent record of an operational warning or caveat stored in the journal.
JournalWarningRecordPayload
Persistent warning incident payload bounded by Dc 554..555.
JournalWarningRecordStringPayload
Persistent warning incident payload with string-only log bounded by Dc 554..555.
JournalWriter
MoveSourceRecord
Durable source inventory and deletion/recovery record persisted in .cscdesc.
StateJournal
Writer managing the persistent state journal and its companion .cscdesc file.

Enums§

JournalErrorStage
Stage in the copy pipeline where an operation or file access error occurred.
JournalMagic
MoveSourceDisposition
Durable per-source lifecycle state for multi-file and cross-device move operations.
ReadMode
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 a DcMstring document.
convert_cscarchive2_to_dcmstring_with_policy
Converts in-memory cscarchive v2 (CTBCSCA\x02 + DcMixed2) bytes to a DcMstring document.
convert_cscarchive_to_dcmstring_with_policy
Converts in-memory cscarchive bytes (v1 or v2) to a DcMstring document.
convert_cscjournal_to_bytes
Converts in-memory cscjournal bytes to current DcMixed journal bytes (CSCJRNL5), or returns version 4+ journal bytes unmodified.
convert_cscjournal_to_bytes_with_policy
Converts journal bytes, using policy when projecting legacy Dc identities.
convert_cscjournal_to_dcmstring
Converts any in-memory cscjournal bytes (legacy or v4+) to a DcMstring document.
convert_cscjournal_to_dcmstring_with_options
Converts journal bytes using policy for legacy Dc identity projection and best_effort for permissive header/payload recovery.
convert_cscjournal_to_dcmstring_with_policy
Converts journal bytes, using policy when projecting legacy Dc identities.
current_platform
dcmstring_to_cscarchive
Encodes a DcMstring into CscArchive2 (CTBCSCA\x02 + DcMixed2) bytes.
dcmstring_to_cscarchive1
Encodes a DcMstring into CscArchive1 (CTBCSCA\x01 + DcMixed1) bytes.
dcmstring_to_cscarchive2
Encodes a DcMstring into CscArchive2 (CTBCSCA\x02 + DcMixed2) bytes.
dcmstring_to_cscjournal
Encodes a DcMstring into CscJournal5 (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 DcMixed state 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 .cscjournal file path.