pub enum ProfileProviderRequest {
GetProfile {
priority: u32,
name: String,
responder: ProfileProviderGetProfileResponder,
},
GetDeadlineProfile {
capacity: u64,
deadline: u64,
period: u64,
name: String,
responder: ProfileProviderGetDeadlineProfileResponder,
},
GetCpuAffinityProfile {
cpu_mask: CpuSet,
responder: ProfileProviderGetCpuAffinityProfileResponder,
},
SetProfileByRole {
handle: Handle,
role: String,
responder: ProfileProviderSetProfileByRoleResponder,
},
}
Variants§
GetProfile
Obtain a profile handle.
TODO(https://fxbug.dev/42116876): This API will be deprecated and removed in the future, use SetProfileByRole instead.
GetDeadlineProfile
Obtain a deadline profile handle.
TODO(https://fxbug.dev/42116876): This API will be deprecated and removed in the future, use SetProfileByRole instead.
Fields
§
responder: ProfileProviderGetDeadlineProfileResponder
GetCpuAffinityProfile
Obtain a handle for a profile that sets CPU affinity.
TODO(https://fxbug.dev/42116876): This API will be deprecated and removed in the future, use SetProfileByRole instead.
SetProfileByRole
Sets the given object’s profile based on the requested role. The exact parameters of the profile are system dependent and may vary based on device-specific tuning and/or runtime system goals.
Implementations§
Source§impl ProfileProviderRequest
impl ProfileProviderRequest
pub fn into_get_profile( self, ) -> Option<(u32, String, ProfileProviderGetProfileResponder)>
pub fn into_get_deadline_profile( self, ) -> Option<(u64, u64, u64, String, ProfileProviderGetDeadlineProfileResponder)>
pub fn into_get_cpu_affinity_profile( self, ) -> Option<(CpuSet, ProfileProviderGetCpuAffinityProfileResponder)>
pub fn into_set_profile_by_role( self, ) -> Option<(Handle, String, ProfileProviderSetProfileByRoleResponder)>
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 ProfileProviderRequest
impl !RefUnwindSafe for ProfileProviderRequest
impl Send for ProfileProviderRequest
impl Sync for ProfileProviderRequest
impl Unpin for ProfileProviderRequest
impl !UnwindSafe for ProfileProviderRequest
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