Added the RecordIterator struct
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
use crate::RecordIterator;
|
||||
use std::io::{BufRead, BufReader, Error, ErrorKind::InvalidData, Result, Write};
|
||||
use std::net::{TcpStream, ToSocketAddrs};
|
||||
|
||||
@@ -142,4 +143,8 @@ impl R701 {
|
||||
// Return only the payload bits as a vector
|
||||
Ok(response[12..response.len() - 2].to_vec())
|
||||
}
|
||||
|
||||
pub fn iter(&mut self) -> Result<RecordIterator> {
|
||||
RecordIterator::from(self)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user