Skip to main content

Module buffer

Module buffer 

Available on crate feature dial9 only.
Expand description

Rotating trace-segment buffers: the on-disk and in-memory sinks.

Structs§

Disk
Disk-backed mode (default).
DiskBufferBuilder
Use builder syntax to set the inputs and finish with build().
Memory
In-memory mode.
MemoryBufferBuilder
Use builder syntax to set the inputs and finish with build().
SegmentWriter
A writer that rotates trace segments to bound resource usage and time. Generic over backend: use DiskBuffer (files) or MemoryBuffer.

Traits§

BufferMode
Marker trait for SegmentWriter’s backend mode. Sealed: only Disk and Memory implement it.

Type Aliases§

DiskBuffer
Alias for the disk-backed writer (the default mode).
MemoryBuffer
Alias for the in-memory writer.