pub struct Power<B: Bmc> { /* private fields */ }Expand description
Legacy Power resource wrapper.
This represents the deprecated Chassis/Power resource used in older
Redfish implementations. For modern BMCs, prefer using direct sensor
links via crate::metrics::HasMetrics or the PowerSubsystem resource.
Note: This type intentionally does NOT implement crate::metrics::HasMetrics
to encourage explicit handling of legacy vs modern approaches.
Implementations§
Trait Implementations§
Source§impl<B: Bmc> Resource for Power<B>
impl<B: Bmc> Resource for Power<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 Power<B>
impl<B> RefUnwindSafe for Power<B>where
B: RefUnwindSafe,
impl<B> Send for Power<B>
impl<B> Sync for Power<B>
impl<B> Unpin for Power<B>where
B: Unpin,
impl<B> UnsafeUnpin for Power<B>
impl<B> UnwindSafe for Power<B>where
B: UnwindSafe,
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