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

§driver_name: String
§dev_name: Name
§dev_units: Option<String>
§max_history: Option<usize>

Registers a read-only device with core.

The reply will contain a channel to broadcast values read from the hardware.

§

AddReadWriteDevice

Fields

§driver_name: String
§dev_name: Name
§dev_units: Option<String>
§max_history: Option<usize>

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.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.