pub struct Device {Show 14 fields
pub path: Option<String>,
pub activated: Option<DateTime<Utc>>,
pub flags: Option<PropertyFlags>,
pub driver: Option<String>,
pub hexdata: Option<String>,
pub sernum: Option<String>,
pub subtype: Option<String>,
pub subtype1: Option<String>,
pub native: Option<i32>,
pub bps: Option<i32>,
pub parity: Option<Parity>,
pub stopbits: Option<u32>,
pub cycle: Option<f64>,
pub mincycle: Option<f64>,
}Expand description
GPS device configuration and status
Represents a GPS receiver device connected to GPSD, including its configuration parameters and current status.
Reference: json_device_read
Fields§
§path: Option<String>Device path (e.g., “/dev/ttyUSB0”)
activated: Option<DateTime<Utc>>Timestamp when device was activated
flags: Option<PropertyFlags>Device capability flags
driver: Option<String>Driver name
hexdata: Option<String>Hex string for vendor/product or subtype
sernum: Option<String>Serial number
subtype: Option<String>Device subtype
subtype1: Option<String>Secondary device subtype
native: Option<i32>Native mode (0=native, 1=binary)
bps: Option<i32>Serial port speed in bits per second
parity: Option<Parity>Serial port parity
stopbits: Option<u32>Number of stop bits
cycle: Option<f64>Device cycle time in seconds
mincycle: Option<f64>Minimum cycle time in seconds
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Device
impl<'de> Deserialize<'de> for Device
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 Device
Auto Trait Implementations§
impl Freeze for Device
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnwindSafe for Device
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