Struct resol_vbus::LiveDataRecordingReader[][src]

pub struct LiveDataRecordingReader<T: Read> { /* fields omitted */ }
Expand description

A RecordingReader for type 0x88 live data recordings.

Examples

use resol_vbus::{FileListReader, LiveDataRecordingReader};

let files: Vec<_> = std::env::args().skip(1).collect();

let flr = FileListReader::new(files);

let mut ldrr = LiveDataRecordingReader::new(flr);

while let Some(data) = ldrr.read_data().unwrap() {
    // process the data
    println!("{}: {}", data.as_header().timestamp, data.id_string());
}

Implementations

Construct a new LiveDataRecordingReader<T> instance.

Set optional minimum and maximum timestamps for prefiltering data.

Set channel that read_* functions will filter data from.

Quickly read to EOF of the source and return the DataSet for all uniquely found Data variants.

Read from the stream until a valid Data variant can be decoded.

Quickly read to EOF of the source and return the LiveDataRecordingStats.

Get amount of already consumed bytes.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.