pub enum GpsdJsonError {
IoError(Error),
SerdeError(Error),
UnsupportedProtocolVersion((i32, i32)),
ProtocolError(&'static str),
}Expand description
Main error type for GPSD JSON protocol operations
This enum represents all possible errors that can occur during communication with GPSD or while parsing protocol messages.
Variants§
IoError(Error)
I/O error occurred during network communication
This typically happens when the connection to GPSD is lost, the server is unreachable, or there are network-related issues.
SerdeError(Error)
JSON serialization/deserialization error
Occurs when GPSD sends malformed JSON or when the response doesn’t match the expected message structure.
UnsupportedProtocolVersion((i32, i32))
GPSD protocol version is not supported
The tuple contains (major, minor) version numbers. This library requires protocol version 3.x compatibility.
ProtocolError(&'static str)
Protocol-level error
Indicates an error in the GPSD protocol communication, such as unexpected message sequences or missing required responses.