pub enum Request {
AddReadonlyDevice {
driver_name: String,
dev_name: Name,
dev_units: Option<String>,
max_history: Option<usize>,
rpy_chan: Sender<Result<(ReportReading, Option<Value>)>>,
},
AddReadWriteDevice {
driver_name: String,
dev_name: Name,
dev_units: Option<String>,
max_history: Option<usize>,
rpy_chan: Sender<Result<(ReportReading, RxDeviceSetting, Option<Value>)>>,
},
}
Expand description
Defines the requests that can be sent to core.
Variants§
AddReadonlyDevice
Fields
Registers a read-only device with core.
The reply will contain a channel to broadcast values read from the hardware.
AddReadWriteDevice
Fields
§
rpy_chan: Sender<Result<(ReportReading, RxDeviceSetting, Option<Value>)>>
Registers a writable device with core.
The reply is a pair where the first element is a channel to broadcast values read from the hardware. The second element is a read-handle to acccept incoming setting to the device.