use gps_parser; fn main() { let mut gps_parser = gps_parser::GpsParser::new("/dev/ttyACM0"); loop { if let Ok(res) = gps_parser.parse_nmea() { println!("{:?}",res); } } }