Re-exports§
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;
Modules§
- memmap
- This is the memory map file implementation for the unified logger for Copper. It is std only.
Structs§
- Main
Header - The main file header of the datalogger.
- Section
Handle - A SectionHandle is a handle to a section in the datalogger. It allows tracking the lifecycle of the section.
- Section
Header - 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.
- Unified
LogStatus - Basic statistics for the unified logger. Note: the total_allocated_space might grow for the std implementation
Enums§
Constants§
- 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
Traits§
- Section
Storage - A Storage is an append-only structure that can update a header section.
- Unified
LogRead - Read back a unified log linearly.
- Unified
LogWrite - The writing interface to the unified logger. Writing is “almost” linear as various streams can allocate sections and track them until they drop them.
Functions§
- stream_
write - Create a new stream to write to the unifiedlogger.