Enum unbounded_gpsd::types::Response[][src]

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

Poll

Data from the last-seen fixes on all active GPS devices.

Show fields

Fields of Poll

time: DateTime<Utc>active: u32

Count of active devices.

tpv: Vec<TpvResponse>sky: Vec<SkyResponse>
Device(DeviceObject)
Devices
Show fields

Fields of Devices

devices: Vec<DeviceObject>remote: Option<String>
Version
Show fields

Fields of Version

release: Stringrev: Stringproto_major: u32proto_minor: u32remote: Option<String>
Error
Show fields

Fields of Error

message: String
Raw(String)

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.