Struct resol_vbus::LiveDataReader
[−]
[src]
pub struct LiveDataReader<R: Read> { /* fields omitted */ }
Allows reading Data
variants from a Read
trait object.
Methods
impl<R: Read> LiveDataReader<R>
[src]
fn new(channel: u8, reader: R) -> LiveDataReader<R>
Constructs a LiveDataReader
.
fn read_bytes(&mut self) -> Result<&[u8]>
Read from the stream until a valid blob of data is found.
fn read_data(&mut self) -> Result<Option<Data>>
Read from the stream until a valid Data
variant can be decoded.