Struct unbounded_gpsd::GpsdConnection[][src]

pub struct GpsdConnection { /* fields omitted */ }

A connection to gpsd.

Methods

impl GpsdConnection
[src]

Make a new connection to a given address.

Enable or disable watcher mode.

Enable RAW mode. In RAW mode, gpsd sends raw data from the GPS device, depending on the value of raw:

When this attribute is set to 1 for a channel, gpsd reports the unprocessed NMEA or AIVDM data stream from whatever device is attached. Binary GPS packets are hex-dumped. RTCM2 and RTCM3 packets are not dumped in raw mode. When this attribute is set to 2 for a channel that processes binary data, gpsd reports the received data verbatim without hex-dumping.

The POLL command requests data from the last-seen fixes on all active GPS devices. Devices must previously have been activated by ?WATCH to be pollable.

Ask for the server's version (triggers a Response::Version).

Ask for the server's devices (triggers a Response::Devices)

Sets the read timeout for get_response.

A value of None implies that the read will never block.

Polls for responses from GPSD, blocking if necessary.

Ideally, you run this in a loop somewhere to process messages.

Auto Trait Implementations