pub struct Processor<B: Bmc> { /* private fields */ }Expand description
Represents a processor in a computer system.
Provides access to processor information and associated metrics/sensors.
Implementations§
Source§impl<B: Bmc> Processor<B>
impl<B: Bmc> Processor<B>
Sourcepub fn raw(&self) -> Arc<ProcessorSchema>
pub fn raw(&self) -> Arc<ProcessorSchema>
Get the raw schema data for this processor.
Returns an Arc to the underlying schema, allowing cheap cloning
and sharing of the data.
Sourcepub async fn metrics(&self) -> Result<Option<Arc<ProcessorMetrics>>, Error<B>>
pub async fn metrics(&self) -> Result<Option<Arc<ProcessorMetrics>>, Error<B>>
Get processor metrics.
Returns the processor’s performance and state metrics if available.
§Errors
Returns an error if:
- The processor does not have metrics
- Fetching metrics data fails
Trait Implementations§
Source§impl<B: Bmc> Resource for Processor<B>
impl<B: Bmc> Resource for Processor<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 Processor<B>
impl<B> RefUnwindSafe for Processor<B>where
B: RefUnwindSafe,
impl<B> Send for Processor<B>
impl<B> Sync for Processor<B>
impl<B> Unpin for Processor<B>
impl<B> UnsafeUnpin for Processor<B>
impl<B> UnwindSafe for Processor<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