Re-exports§
pub use noop::NoopLogger;pub use noop::NoopSectionStorage;pub use crate::memmap::LogPosition;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§
Structs§
- Application
Metadata - Static application identity and configuration, retained outside the data ring.
- EndOf
LogMarker - Payload stored in the end-of-log section to signal whether the log was cleanly closed.
- LogStream
- A wrapper around the unifiedlogger that implements the Write trait.
- Main
Header - Header of the byte-addressed log. All offsets are relative to the log origin.
- Section
Context - Construction identity shared by every section of an application instance.
- Section
Handle - A SectionHandle is a handle to a section in the datalogger. It allows tracking the lifecycle of the section.
- Section
Header - One linked section. The allocation includes its 512-byte header reservation.
- Unified
LogStatus - Basic statistics for the unified logger. Note: the total_allocated_space might grow for the std implementation
Enums§
- Allocated
Section - Capacity
Policy - Behavior when a section needs additional storage.
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
- UNIFIED_
LOG_ FORMAT_ VERSION - Version of the unified log encapsulation only: file headers, section headers, and the layout used to locate sections in a slab.
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.