[][src]Struct GPS_project_aisha::GPS

pub struct GPS { /* fields omitted */ }

The field of the data received from the GPS antenna


impl GPS[src]

pub fn init() -> Self[src]

The initialization of the struct values

pub fn convert(&mut self, gps_string: Vec<&str>)[src]

Reads values from a vector to assign to the fields in the struct

pub fn collect_data(&mut self, data: String)[src]

Reads raw data from the GPS antenna and converts to a vector

pub fn set_uart(&mut self)[src]

Sets the UART settings to enable the raspberry pi to read

Trait Implementations

impl Debug for GPS[src]

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.