Skip to main content

HistoryWriter

Type Alias HistoryWriter 

Source
pub type HistoryWriter = Option<Arc<Mutex<HistoryFile>>>;
Expand description

Optional history-file handle shared by every active subscription. None when [pubsub].history_file is unset; Some(handle) when the operator opted in. JSONL appends and rotation are serialised through the mutex so concurrent watchers don’t tear lines.

Aliased Type§

pub enum HistoryWriter {
    None,
    Some(Arc<Mutex<HistoryFile>>),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(Arc<Mutex<HistoryFile>>)

Some value of type T.