Struct unbounded_gpsd::GpsdConnection [−][src]
pub struct GpsdConnection { /* fields omitted */ }
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
impl RefUnwindSafe for GpsdConnection
impl Send for GpsdConnection
impl Sync for GpsdConnection
impl Unpin for GpsdConnection
impl UnwindSafe for GpsdConnection