pub struct PowerAllocation {
pub requested_watts: Option<Option<Decimal>>,
pub allocated_watts: Option<Option<Decimal>>,
}Expand description
Power allocation for a subsystem.
This type shall contain the set of properties describing the allocation of power for a subsystem.
Fields§
§requested_watts: Option<Option<Decimal>>The potential power, in watt units, that the subsystem requests, which might be higher than the current level being consumed because the requested power includes a budget that the subsystem wants for future use.
This property shall represent the amount of power, in watt units, that the subsystem currently requests to be budgeted for future use.
allocated_watts: Option<Option<Decimal>>The total amount of power that has been allocated or budgeted to this subsystem.
This property shall represent the total power currently allocated or budgeted to this subsystem.
Trait Implementations§
Source§impl Debug for PowerAllocation
impl Debug for PowerAllocation
Source§impl<'de> Deserialize<'de> for PowerAllocation
impl<'de> Deserialize<'de> for PowerAllocation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Send for PowerAllocation
SAFETY: All generated data types are Send
impl Sync for PowerAllocation
SAFETY: All generated data types are Sync
Auto Trait Implementations§
impl Freeze for PowerAllocation
impl RefUnwindSafe for PowerAllocation
impl Unpin for PowerAllocation
impl UnsafeUnpin for PowerAllocation
impl UnwindSafe for PowerAllocation
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