pub enum PowerElementProviderRequest {
GetPowerGoals {
responder: PowerElementProviderGetPowerGoalsResponder,
},
GetClockSpeedLevel {
payload: PowerElementProviderGetClockSpeedLevelRequest,
responder: PowerElementProviderGetClockSpeedLevelResponder,
},
SetClockLimit {
payload: PowerElementProviderSetClockLimitRequest,
responder: PowerElementProviderSetClockLimitResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: PowerElementProviderControlHandle,
method_type: MethodType,
},
}
Expand description
This protocol is used to retrieve information on the power levels that this driver provides.
Variants§
GetPowerGoals
Retrieve a list of power goals that the hardware can attempt to achieve.
Fields
§
responder: PowerElementProviderGetPowerGoalsResponder
GetClockSpeedLevel
Get a power level that represents the GPU clock being set to at least a target frequency. The power level may allow the GPU to idle or turn off, as long as the clock frequency remains the same.
Fields
SetClockLimit
Limit the clock to at most a specific frequency.
Fields
§
responder: PowerElementProviderSetClockLimitResponder
_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
control_handle: PowerElementProviderControlHandle
§
method_type: MethodType
Implementations§
Source§impl PowerElementProviderRequest
impl PowerElementProviderRequest
pub fn into_get_power_goals( self, ) -> Option<PowerElementProviderGetPowerGoalsResponder>
pub fn into_get_clock_speed_level( self, ) -> Option<(PowerElementProviderGetClockSpeedLevelRequest, PowerElementProviderGetClockSpeedLevelResponder)>
pub fn into_set_clock_limit( self, ) -> Option<(PowerElementProviderSetClockLimitRequest, PowerElementProviderSetClockLimitResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PowerElementProviderRequest
impl !RefUnwindSafe for PowerElementProviderRequest
impl Send for PowerElementProviderRequest
impl Sync for PowerElementProviderRequest
impl Unpin for PowerElementProviderRequest
impl !UnwindSafe for PowerElementProviderRequest
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