pub struct Manager<B: Bmc> { /* private fields */ }Expand description
Represents a manager (BMC) in the system.
Provides access to manager information and associated services.
Implementations§
Source§impl<B: Bmc> Manager<B>
impl<B: Bmc> Manager<B>
Sourcepub fn raw(&self) -> Arc<ManagerSchema>
pub fn raw(&self) -> Arc<ManagerSchema>
Get the raw schema data for this manager.
Returns an Arc to the underlying schema, allowing cheap cloning
and sharing of the data.
Sourcepub async fn ethernet_interfaces(
&self,
) -> Result<EthernetInterfaceCollection<B>, Error<B>>
pub async fn ethernet_interfaces( &self, ) -> Result<EthernetInterfaceCollection<B>, Error<B>>
Get ethernet interfaces for this manager.
§Errors
Returns an error if:
- The manager does not have / provide ethernet interfaces
- Fetching log ethernet internet data fails
Sourcepub async fn log_services(&self) -> Result<Vec<LogService<B>>, Error<B>>
pub async fn log_services(&self) -> Result<Vec<LogService<B>>, Error<B>>
Get log services for this manager.
§Errors
Returns an error if:
- The manager does not have log services
- Fetching log service data fails
Trait Implementations§
Source§impl<B: Bmc> Resource for Manager<B>
impl<B: Bmc> Resource for Manager<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 Manager<B>
impl<B> RefUnwindSafe for Manager<B>where
B: RefUnwindSafe,
impl<B> Send for Manager<B>
impl<B> Sync for Manager<B>
impl<B> Unpin for Manager<B>
impl<B> UnsafeUnpin for Manager<B>
impl<B> UnwindSafe for Manager<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