Crate cu29_unifiedlog Copy item path Source pub use crate::memmap::MmapUnifiedLogger as UnifiedLogger;pub use crate::memmap::MmapUnifiedLoggerBuilder as UnifiedLoggerBuilder;pub use crate::memmap::MmapUnifiedLoggerRead as UnifiedLoggerRead;pub use crate::memmap::MmapUnifiedLoggerWrite as UnifiedLoggerWrite;pub use crate::memmap::UnifiedLoggerIOReader ;memmap This is the memory map file implementation for the unified logger for Copper.
It is std only. EndOfLogMarker Payload stored in the end-of-log section to signal whether the log was cleanly closed. MainHeader The main file header of the datalogger. SectionHandle A SectionHandle is a handle to a section in the datalogger.
It allows tracking the lifecycle of the section. SectionHeader Each concurrent sublogger is tracked through a section header.
They form a linked list of sections.
The entry type is used to identify the type of data in the section. UnifiedLogStatus Basic statistics for the unified logger.
Note: the total_allocated_space might grow for the std implementation AllocatedSection MAIN_MAGIC ID to spot the beginning of a Copper Log SECTION_HEADER_COMPACT_SIZE SECTION_MAGIC ID to spot a section of Copper Log SectionStorage A Storage is an append-only structure that can update a header section. UnifiedLogRead Read back a unified log linearly. UnifiedLogWrite The writing interface to the unified logger.
Writing is “almost” linear as various streams can allocate sections and track them until
they drop them. stream_write Create a new stream to write to the unifiedlogger.