pub struct ServiceRoot<B: Bmc> {
pub root: Arc<ServiceRoot>,
/* private fields */
}Expand description
Represents ServiceRoot in the BMC model.
Fields§
§root: Arc<ServiceRoot>Content of the root.
Implementations§
Source§impl<B: Bmc> ServiceRoot<B>
impl<B: Bmc> ServiceRoot<B>
Sourcepub fn vendor(&self) -> Option<Vendor<&str>>
pub fn vendor(&self) -> Option<Vendor<&str>>
The vendor or manufacturer associated with this Redfish service.
Sourcepub fn product(&self) -> Option<Product<&str>>
pub fn product(&self) -> Option<Product<&str>>
The product associated with this Redfish service.
Sourcepub async fn account_service(
&self,
) -> Result<Option<AccountService<B>>, Error<B>>
pub async fn account_service( &self, ) -> Result<Option<AccountService<B>>, Error<B>>
Get the account service belonging to the BMC.
Returns Ok(None) when the BMC does not expose AccountService.
§Errors
Returns error if retrieving account service data fails.
Sourcepub async fn chassis(&self) -> Result<Option<ChassisCollection<B>>, Error<B>>
pub async fn chassis(&self) -> Result<Option<ChassisCollection<B>>, Error<B>>
Get chassis collection in BMC
Returns Ok(None) when the BMC does not expose Chassis.
§Errors
Returns error if retrieving chassis collection data fails.
Sourcepub async fn systems(&self) -> Result<Option<SystemCollection<B>>, Error<B>>
pub async fn systems(&self) -> Result<Option<SystemCollection<B>>, Error<B>>
Get computer system collection in BMC
Returns Ok(None) when the BMC does not expose Systems.
§Errors
Returns error if retrieving system collection data fails.
Sourcepub async fn update_service(&self) -> Result<Option<UpdateService<B>>, Error<B>>
pub async fn update_service(&self) -> Result<Option<UpdateService<B>>, Error<B>>
Get update service in BMC
Returns Ok(None) when the BMC does not expose UpdateService.
§Errors
Returns error if retrieving update service data fails.
Sourcepub async fn event_service(&self) -> Result<Option<EventService<B>>, Error<B>>
pub async fn event_service(&self) -> Result<Option<EventService<B>>, Error<B>>
Get event service in BMC
Returns Ok(None) when the BMC does not expose EventService.
§Errors
Returns error if retrieving event service data fails.
Sourcepub async fn telemetry_service(
&self,
) -> Result<Option<TelemetryService<B>>, Error<B>>
pub async fn telemetry_service( &self, ) -> Result<Option<TelemetryService<B>>, Error<B>>
Get telemetry service in BMC
Returns Ok(None) when the BMC does not expose TelemetryService.
§Errors
Returns error if retrieving telemetry service data fails.
Trait Implementations§
Source§impl<B: Clone + Bmc> Clone for ServiceRoot<B>
impl<B: Clone + Bmc> Clone for ServiceRoot<B>
Source§fn clone(&self) -> ServiceRoot<B>
fn clone(&self) -> ServiceRoot<B>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more