Struct socketcan_hal::dump::Reader
source · [−]pub struct Reader<R> { /* private fields */ }
Expand description
A CAN log reader.
Implementations
sourceimpl<R: BufRead> Reader<R>
impl<R: BufRead> Reader<R>
sourcepub fn records(&mut self) -> CanDumpRecords<'_, R>ⓘNotable traits for CanDumpRecords<'a, BufReader<R>>impl<'a, R: Read> Iterator for CanDumpRecords<'a, BufReader<R>> type Item = Result<(u64, CanFrame), ParseError>;
pub fn records(&mut self) -> CanDumpRecords<'_, R>ⓘNotable traits for CanDumpRecords<'a, BufReader<R>>impl<'a, R: Read> Iterator for CanDumpRecords<'a, BufReader<R>> type Item = Result<(u64, CanFrame), ParseError>;
Returns an iterator over all records
sourcepub fn next_record(&mut self) -> Result<Option<CanDumpRecord<'_>>, ParseError>
pub fn next_record(&mut self) -> Result<Option<CanDumpRecord<'_>>, ParseError>
Advance state, returning next record.
Trait Implementations
Auto Trait Implementations
impl<R> RefUnwindSafe for Reader<R> where
R: RefUnwindSafe,
impl<R> Send for Reader<R> where
R: Send,
impl<R> Sync for Reader<R> where
R: Sync,
impl<R> Unpin for Reader<R> where
R: Unpin,
impl<R> UnwindSafe for Reader<R> where
R: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more