pub struct Redfish {
pub client: Client,
pub config: Config,
}Fields§
§client: Client§config: ConfigImplementations§
Source§impl Redfish
impl Redfish
pub fn new(client: Client, config: Config) -> Self
pub fn get<T>(&self, api: &str) -> Result<T, Error>where
T: DeserializeOwned + Debug,
pub fn get_array_controller( &self, controller_id: u64, ) -> Result<ArrayController, Error>
pub fn get_array_controllers(&self) -> Result<ArrayControllers, Error>
Sourcepub fn get_manager_status(&self) -> Result<Manager, Error>
pub fn get_manager_status(&self) -> Result<Manager, Error>
Query the manager status from the server
Sourcepub fn get_power_status(&self) -> Result<Power, Error>
pub fn get_power_status(&self) -> Result<Power, Error>
Query the power status from the server
Sourcepub fn get_thermal_status(&self) -> Result<Thermal, Error>
pub fn get_thermal_status(&self) -> Result<Thermal, Error>
Query the thermal status from the server
Sourcepub fn get_smart_array_status(
&self,
controller_id: u64,
) -> Result<SmartArray, Error>
pub fn get_smart_array_status( &self, controller_id: u64, ) -> Result<SmartArray, Error>
Query the smart array status from the server
pub fn get_logical_drives( &self, controller_id: u64, ) -> Result<LogicalDrives, Error>
pub fn get_physical_drive( &self, drive_id: u64, controller_id: u64, ) -> Result<DiskDrive, Error>
pub fn get_physical_drives( &self, controller_id: u64, ) -> Result<DiskDrives, Error>
pub fn get_storage_enclosures( &self, controller_id: u64, ) -> Result<StorageEnclosures, Error>
pub fn get_storage_enclosure( &self, controller_id: u64, enclosure_id: u64, ) -> Result<StorageEnclosure, Error>
Auto Trait Implementations§
impl Freeze for Redfish
impl !RefUnwindSafe for Redfish
impl Send for Redfish
impl Sync for Redfish
impl Unpin for Redfish
impl !UnwindSafe for Redfish
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