pub struct PowercapNodeInfo {
pub node_id: Option<u64>,
pub parent_node_id: Option<u64>,
pub zone_path: Option<String>,
pub name: Option<String>,
pub constraint_name: Option<String>,
pub max_power_uw: Option<u64>,
pub min_power_uw: Option<u64>,
pub power_levels_uw: Option<Vec<u64>>,
pub supports_bypass: Option<bool>,
/* private fields */
}Expand description
Describes the static topology and attributes of a single powercap zone node.
node_id, zone_path, and name must always be present on every node;
entries omitting any of these fields are ignored by clients.
Fields§
§node_id: Option<u64>Unique identifier for this node within the powercap tree. Required.
parent_node_id: Option<u64>The node_id of the parent zone. Omitted for root zones (e.g., gpc:0).
zone_path: Option<String>The canonical sysfs directory name under /sys/class/powercap (e.g.,
"gpc:0", "gpc:0:0", "gpc:0:0:0"). Required.
name: Option<String>The logical zone name exposed via the name sysfs attribute (e.g.,
"gpc", "TestZone", "BIG", "MID", "LITTLE", "GPU"). Required.
constraint_name: Option<String>The constraint name exposed via constraint_0_name (e.g., "TestConstraint").
Omitted if the zone does not expose constraint metadata.
max_power_uw: Option<u64>Maximum power limit in microwatts (constraint_0_max_power_uw).
Omitted if the zone does not expose a maximum power limit attribute.
min_power_uw: Option<u64>Minimum power limit in microwatts (constraint_0_min_power_uw).
Omitted if the zone does not expose a minimum power limit attribute.
power_levels_uw: Option<Vec<u64>>Discrete supported power levels in microwatts (power_levels_uw),
ordered from highest to lowest. Omitted for aggregator zones without
discrete power tables.
supports_bypass: Option<bool>Whether this zone exposes power_limit_bypass_msec for transient boost
overrides (e.g., PowerHAL CPU_LOAD_SPIKE / LAUNCH hints). Omitted
(or false) if the zone does not support bypass overrides.
Trait Implementations§
Source§impl Clone for PowercapNodeInfo
impl Clone for PowercapNodeInfo
Source§fn clone(&self) -> PowercapNodeInfo
fn clone(&self) -> PowercapNodeInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PowercapNodeInfo
impl Debug for PowercapNodeInfo
Source§impl<D> Decode<PowercapNodeInfo, D> for PowercapNodeInfowhere
D: ResourceDialect,
impl<D> Decode<PowercapNodeInfo, D> for PowercapNodeInfowhere
D: ResourceDialect,
Source§fn new_empty() -> PowercapNodeInfo
fn new_empty() -> PowercapNodeInfo
Self. The specific value does not matter,
since it will be overwritten by decode.Source§impl Default for PowercapNodeInfo
impl Default for PowercapNodeInfo
Source§fn default() -> PowercapNodeInfo
fn default() -> PowercapNodeInfo
Source§impl<D> Encode<PowercapNodeInfo, D> for &PowercapNodeInfowhere
D: ResourceDialect,
impl<D> Encode<PowercapNodeInfo, D> for &PowercapNodeInfowhere
D: ResourceDialect,
Source§impl PartialEq for PowercapNodeInfo
impl PartialEq for PowercapNodeInfo
impl Persistable for PowercapNodeInfo
impl StructuralPartialEq for PowercapNodeInfo
Source§impl TypeMarker for PowercapNodeInfo
impl TypeMarker for PowercapNodeInfo
Source§type Owned = PowercapNodeInfo
type Owned = PowercapNodeInfo
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned to a single memcpy.Source§impl ValueTypeMarker for PowercapNodeInfo
impl ValueTypeMarker for PowercapNodeInfo
Source§type Borrowed<'a> = &'a PowercapNodeInfo
type Borrowed<'a> = &'a PowercapNodeInfo
Encode<Self>
type cheaply obtainable from &Self::Owned. There are three cases: Read moreSource§fn borrow(
value: &<PowercapNodeInfo as TypeMarker>::Owned,
) -> <PowercapNodeInfo as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<PowercapNodeInfo as TypeMarker>::Owned, ) -> <PowercapNodeInfo as ValueTypeMarker>::Borrowed<'_>
&Self::Owned to Self::Borrowed.