[][src]Trait adafruit_gps::gps::GetGpsData

pub trait GetGpsData {
    fn update(&mut self) -> GpsData;
fn read_line(&mut self) -> String; }

This trait contains the two most important commands: update and read_line.

Required methods

fn update(&mut self) -> GpsData

Returns the GpsData struct

fn read_line(&mut self) -> String

Reads a whole sentence given by the serial buffer

Loading content...

Implementors

impl GetGpsData for Gps[src]

fn update(&mut self) -> GpsData[src]

Keeps reading sentences until all the required sentences are read.

Returns GpsData.

fn read_line(&mut self) -> String[src]

Reads a full sentence from the serial buffer, returns a String.

Loading content...