Enum unbounded_gpsd::types::Response
source · pub enum Response {
Tpv(TpvResponse),
Sky(SkyResponse),
Poll {
time: DateTime<Utc>,
active: u32,
tpv: Vec<TpvResponse>,
sky: Vec<SkyResponse>,
},
Device(DeviceObject),
Devices {
devices: Vec<DeviceObject>,
remote: Option<String>,
},
Watch(WatchObject),
Version {
release: String,
rev: String,
proto_major: u32,
proto_minor: u32,
remote: Option<String>,
},
Error {
message: String,
},
Raw(String),
}
Expand description
A response from GPSD.
For single-struct variants, the documentation on the struct usually has more information.
Variants§
Tpv(TpvResponse)
Sky(SkyResponse)
Poll
Data from the last-seen fixes on all active GPS devices.
Device(DeviceObject)
Devices
Watch(WatchObject)
Version
Error
Raw(String)
Trait Implementations§
source§impl<'de> Deserialize<'de> for Response
impl<'de> Deserialize<'de> for Response
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more