Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Module: log_buffer

Source: log_buffer.rs

Debug-only ring buffer for strategy log messages.

Stores the most recent max log entries, dropping oldest when full. Only compiled in debug_assertions builds.

Structs

pub struct LogBuffer

#![allow(unused)]
fn main() {
pub struct LogBuffer {
    entries: VecDeque < String >,
    max: usize,
};
}

Ring buffer for strategy log messages. Drops oldest entries when max capacity is reached.