pub enum PipeRequest {
SetOptions {
options: ComputerOptions,
},
UpdateAll,
GetHardwareById {
id: String,
},
QueryHardware {
parent_id: Option<Option<String>>,
ty: Option<HardwareType>,
},
UpdateHardwareById {
id: String,
},
UpdateHardwareByIndex {
idx: usize,
},
GetSensorById {
id: String,
},
GetSensorValueById {
id: String,
update: bool,
},
GetSensorValueByIndex {
idx: usize,
update: bool,
},
QuerySensors {
parent_id: Option<String>,
ty: Option<SensorType>,
},
UpdateSensorById {
id: String,
},
UpdateSensorByIndex {
idx: usize,
},
}Variants§
SetOptions
Fields
§
options: ComputerOptionsUpdateAll
GetHardwareById
QueryHardware
UpdateHardwareById
UpdateHardwareByIndex
GetSensorById
GetSensorValueById
GetSensorValueByIndex
QuerySensors
UpdateSensorById
UpdateSensorByIndex
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PipeRequest
impl<'de> Deserialize<'de> for PipeRequest
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
Auto Trait Implementations§
impl Freeze for PipeRequest
impl RefUnwindSafe for PipeRequest
impl Send for PipeRequest
impl Sync for PipeRequest
impl Unpin for PipeRequest
impl UnsafeUnpin for PipeRequest
impl UnwindSafe for PipeRequest
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