Struct unbounded_gpsd::GpsdConnection [] [src]

pub struct GpsdConnection { /* fields omitted */ }

A connection to gpsd.

Methods

impl GpsdConnection
[src]

[src]

Make a new connection to a given address.

[src]

Enable or disable watcher mode.

[src]

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.

[src]

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

[src]

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

[src]

Sets the read timeout for get_response.

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

[src]

Polls for responses from GPSD, blocking if necessary.

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