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
.
Read from the stream until a valid blob of data is found.