pub enum CpuElementManagerRequest {
GetCpuDependencyToken {
responder: CpuElementManagerGetCpuDependencyTokenResponder,
},
AddExecutionStateDependency {
payload: CpuElementManagerAddExecutionStateDependencyRequest,
responder: CpuElementManagerAddExecutionStateDependencyResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: CpuElementManagerControlHandle,
method_type: MethodType,
},
}
Expand description
A service that provides access to CPU-related power elements.
Variants§
GetCpuDependencyToken
Gets the assertive dependency token for the CPU power element.
Fields
AddExecutionStateDependency
Adds a dependency from the Execution State power element to the target
power element identified by [dependency_token
] at [power_level
].
Once the Execution State power element is created, future calls will
return [fuchsia.power.system/AddExecutionStateDependencyError.BAD_STATE
]
and no changes to Execution State dependencies will be made.
If any required entries in the request are missing, the server will
return [fuchsia.power.system/AddExecutionStateDependencyError.INVALID_ARGS
].
Fields
_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: CpuElementManagerControlHandle
§
method_type: MethodType
Implementations§
Source§impl CpuElementManagerRequest
impl CpuElementManagerRequest
pub fn into_get_cpu_dependency_token( self, ) -> Option<CpuElementManagerGetCpuDependencyTokenResponder>
pub fn into_add_execution_state_dependency( self, ) -> Option<(CpuElementManagerAddExecutionStateDependencyRequest, CpuElementManagerAddExecutionStateDependencyResponder)>
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 CpuElementManagerRequest
impl !RefUnwindSafe for CpuElementManagerRequest
impl Send for CpuElementManagerRequest
impl Sync for CpuElementManagerRequest
impl Unpin for CpuElementManagerRequest
impl !UnwindSafe for CpuElementManagerRequest
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