Skip to main content

Module control

Module control 

Source
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.
ControlCollection
Control collection.
ControlUpdate
Update struct corresponding to Control

Enums§

ControlMode
ControlType
ImplementationType
SetPointType