[−][src]Struct gps_data_reader_bjarki18::GPS
Provides access to the data read from the gps module.
Fields
baud: u32
latitude: String
longitude: String
north_south: String
east_west: String
satellites: String
altitude: String
Implementations
impl GPS
[src]
pub fn default() -> Self
[src]
Constructs a default empty GPS struct.
pub fn print_data(&mut self)
[src]
Formats data from the struct and prints it.
pub fn set_data(&mut self, vektor: Vec<&str>)
[src]
Sets the struct data from Vec<&str> format
pub fn read_data(&mut self, res: String)
[src]
Reads in data from an input String type - only reads gps data with the identifier "$GPGGA".
pub fn check_baud(&mut self, value: u32) -> Option<u32>
[src]
checks the baud rate with an Option
pub fn set_baud(&mut self, value: u32)
[src]
sets the baud rate of the system, only accepts the default 9600 of the gps module.
Auto Trait Implementations
impl RefUnwindSafe for GPS
impl Send for GPS
impl Sync for GPS
impl Unpin for GPS
impl UnwindSafe for GPS
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,