Module segment

Source

Structs§

Commits
Committed
Metadata about a Commit which was successfully written via Writer::commit.
Header
Metadata
OffsetIndexWriter
Reader
Transaction
Pair of transaction offset and payload.
Writer

Constants§

CHECKSUM_ALGORITHM_CRC32C
DEFAULT_CHECKSUM_ALGORITHM
DEFAULT_LOG_FORMAT_VERSION
MAGIC

Traits§

FileLike

Functions§

seek_to_offset
Advances the segment reader to the position corresponding to the start_tx_offset using the index_file for efficient seeking.
validate_commit_header
Try to extract the commit header from the asked position without advancing seek. IndexFileMut fsync asynchoronously, which makes it important for reader to verify its entry