Struct resol_vbus::LiveDataReader[][src]

pub struct LiveDataReader<R: Read> { /* fields omitted */ }
Expand description

Allows reading Data variants from a Read trait object.

Examples

use resol_vbus::{FileListReader, LiveDataReader};

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

let flr = FileListReader::new(files);

let mut ldr = LiveDataReader::new(0, flr);

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

Implementations

Constructs a LiveDataReader.

Get a reference to the underlying reader.

Get a mutable reference to the underlying reader.

Read from the stream until a valid blob of data is found.

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

Trait Implementations

Performs the conversion.

Performs the conversion.

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.