pub enum RoleManagerRequest {
SetRole {
payload: RoleManagerSetRoleRequest,
responder: RoleManagerSetRoleResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: RoleManagerControlHandle,
method_type: MethodType,
},
}
Expand description
Allows callers to modify the runtime profiles of zircon objects.
Variants§
SetRole
Sets the given object’s performance parameters based on the requested role. The exact parameters of the role are system dependent and may vary based on device-specific tuning and/or runtime system goals.
- request
target
is a handle to a zircon object to which a profile can be applied. - request
role
is the name of the role to apply to the target. - request
input_parameters
is a vector of key/value pairs used to distinguish between multiple variants of the same role.
- response
output_parameters
is a vector of key/value pairs that roles can be configured to emit.
- error a zx_status value indicating success or failure.
_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: RoleManagerControlHandle
§
method_type: MethodType
Implementations§
Source§impl RoleManagerRequest
impl RoleManagerRequest
pub fn into_set_role( self, ) -> Option<(RoleManagerSetRoleRequest, RoleManagerSetRoleResponder)>
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 RoleManagerRequest
impl !RefUnwindSafe for RoleManagerRequest
impl Send for RoleManagerRequest
impl Sync for RoleManagerRequest
impl Unpin for RoleManagerRequest
impl !UnwindSafe for RoleManagerRequest
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