pub enum Message {
Devices,
Watch(Option<Watch>),
Device(Option<Device>),
Poll,
Version,
}Expand description
Request message types for GPSD protocol v3
These are the commands that a client can send to GPSD to query information or control data streaming.
Variants§
Devices
Request a list of all GPS devices known to GPSD
Command: ?DEVICES;
Watch(Option<Watch>)
Control data streaming from GPSD
None: Query current watch settings (?WATCH;)Some(watch): Set watch parameters (?WATCH={...};)
Device(Option<Device>)
Control or query a specific GPS device
None: Query current device (?DEVICE;)Some(device): Configure device (?DEVICE={...};)
Poll
Poll for current GPS data from all devices
Command: ?POLL;
Version
Request GPSD version information
Command: ?VERSION;
Trait Implementations§
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more