pub struct Watch {
pub device: Option<String>,
pub enable: Option<bool>,
pub json: Option<bool>,
pub nmea: Option<bool>,
pub pps: Option<bool>,
pub raw: Option<i32>,
pub scaled: Option<bool>,
pub split24: Option<bool>,
pub timing: Option<bool>,
pub remote: Option<String>,
}Expand description
Watch mode configuration
Controls what data GPSD streams to the client and in what format. Used to enable/disable data streaming and configure output options.
Reference: json_watch_read
Fields§
§device: Option<String>Specific device to watch (or all if None)
enable: Option<bool>Enable/disable streaming
json: Option<bool>Enable JSON output
nmea: Option<bool>Enable NMEA output
pps: Option<bool>Enable PPS timing output
raw: Option<i32>Raw mode (0=off, 1=hex, 2=binary)
scaled: Option<bool>Enable scaled output
split24: Option<bool>Split AIS type 24 messages
timing: Option<bool>Enable timing information
remote: Option<String>Remote server URL
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Watch
impl<'de> Deserialize<'de> for Watch
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Watch
Auto Trait Implementations§
impl Freeze for Watch
impl RefUnwindSafe for Watch
impl Send for Watch
impl Sync for Watch
impl Unpin for Watch
impl UnwindSafe for Watch
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