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<&String>>
pub fn vendor(&self) -> Option<Vendor<&String>>
The vendor or manufacturer associated with this Redfish service.
Sourcepub fn product(&self) -> Option<Product<&String>>
pub fn product(&self) -> Option<Product<&String>>
The product associated with this Redfish service.
Sourcepub async fn account_service(&self) -> Result<AccountService<B>, Error<B>>
pub async fn account_service(&self) -> Result<AccountService<B>, Error<B>>
Get the account service belonging to the BMC.
§Errors
Returns error if retrieving account service data fails.
Sourcepub async fn chassis(&self) -> Result<ChassisCollection<B>, Error<B>>
pub async fn chassis(&self) -> Result<ChassisCollection<B>, Error<B>>
Sourcepub async fn systems(&self) -> Result<SystemCollection<B>, Error<B>>
pub async fn systems(&self) -> Result<SystemCollection<B>, Error<B>>
Sourcepub async fn update_service(&self) -> Result<UpdateService<B>, Error<B>>
pub async fn update_service(&self) -> Result<UpdateService<B>, Error<B>>
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>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<B: Bmc> Resource for ServiceRoot<B>
impl<B: Bmc> Resource for ServiceRoot<B>
Source§fn resource_ref(&self) -> &ResourceSchema
fn resource_ref(&self) -> &ResourceSchema
Required function. Must be implemented for Redfish resources.
Source§fn id(&self) -> ResourceIdRef<'_>
fn id(&self) -> ResourceIdRef<'_>
Identifier of the resource.
Source§fn name(&self) -> ResourceNameRef<'_>
fn name(&self) -> ResourceNameRef<'_>
Name of the resource.
Source§fn description(&self) -> Option<ResourceDescriptionRef<'_>>
fn description(&self) -> Option<ResourceDescriptionRef<'_>>
Description of the resource.
Auto Trait Implementations§
impl<B> Freeze for ServiceRoot<B>
impl<B> RefUnwindSafe for ServiceRoot<B>where
B: RefUnwindSafe,
impl<B> Send for ServiceRoot<B>
impl<B> Sync for ServiceRoot<B>
impl<B> Unpin for ServiceRoot<B>
impl<B> UnsafeUnpin for ServiceRoot<B>
impl<B> UnwindSafe for ServiceRoot<B>where
B: RefUnwindSafe,
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