pub struct GpsdConnection { /* private fields */ }
Expand description

A connection to gpsd.

Implementations§

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§

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.