Struct Mp3Recording Exit
pub struct Mp3RecordingExit<W> {
pub destination: W,
pub consumer: AudioConsumer,
pub accepted_frames: u64,
pub dequeued_frames: u64,
pub written_bytes: u64,
pub file_bytes: u64,
/* private fields */
}Expand description
Explicit complete or incomplete worker outcome, with reclaimed sink/source.
An Ok controller result alone does not prove a complete recording: inspect
completion(). Irreversible output prefixes are retained on faults.
Fields§
§destination: WRecovered complete or partial destination; inspect completion first.
consumer: AudioConsumerRecovered exact consumer, including retained queued suffix after failure.
accepted_frames: u64Encoder-submitted frames, including any failing accepted codec batch.
dequeued_frames: u64Ring-dequeued frames, including any rejected source batch.
written_bytes: u64Actual sink-accepted bytes, including partial failed writes.
file_bytes: u64Final/current file region bytes, excluding repeated metadata writes.
Implementations§
§impl<W> Mp3RecordingExit<W>
impl<W> Mp3RecordingExit<W>
pub fn completion(&self) -> &Mp3RecordingCompletion
pub fn completion(&self) -> &Mp3RecordingCompletion
Mutually exclusive finalization/abort/original-failure evidence.
pub fn into_parts(self) -> (W, AudioConsumer, Mp3RecordingCompletion)
pub fn into_parts(self) -> (W, AudioConsumer, Mp3RecordingCompletion)
Consume the private completion evidence with recovered sink and consumer. Inspect/save public diagnostic counts first if needed.