pub enum GPSError {
TcpStreamError(String),
BufReadError(Error),
WelcomeMessageError,
SerdeJsonError(Error),
TimeZoneParseError(ParseError),
WatchError,
TimeConvertError(String),
}Expand description
Possible errors that can occur for parsing the data that comes from the gpsd socket server.
Variants§
TcpStreamError(String)
TcpStreamError protocol for any socket errors.
BufReadError(Error)
Standard io error.
WelcomeMessageError
Means the welcome message from gpsd has failed.
SerdeJsonError(Error)
Standard serde_json error.
TimeZoneParseError(ParseError)
Trouble parsing to the users timezone.
WatchError
GPS had a failed watch message.
TimeConvertError(String)
Couldn’t convert the string to a DateTime.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GPSError
impl !RefUnwindSafe for GPSError
impl Send for GPSError
impl Sync for GPSError
impl Unpin for GPSError
impl !UnwindSafe for GPSError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more