Expand description
Controls. Control resources.
§Example
ⓘ
use nv_redfish::control::ControlUpdate;
use nv_redfish_core::ModificationResponse;
let Some(power_limit) = chassis.environment_power_limit_control().await? else {
return Ok(());
};
let update = ControlUpdate::builder().with_set_point(700.0).build();
match power_limit.update(&update).await? {
ModificationResponse::Entity(updated) => {
let _updated_control = updated.raw();
}
ModificationResponse::Task(task) => {
let _task = task;
}
ModificationResponse::Empty => {}
}Structs§
- Control
- Control entity wrapper.
- Control
Collection - Control collection.
- Control
Update - Update struct corresponding to
Control