Skip to main content

recorder_or_disabled

Function recorder_or_disabled 

pub fn recorder_or_disabled<M>(
    writer: Result<SegmentWriter<M>, Error>,
) -> RecorderBuilder<M>
where M: BufferMode,
Available on crate feature dial9 only.
Expand description

Begin building a recorder backed by writer, or a writer-free disabled one when the writer could not be created.

Configure it exactly like recorder: register sources, set a pipeline, then build. When the writer failed, that config is kept but inert, and build yields the same recorder recorder_disabled does.