pub struct ProfileProviderSynchronousProxy { /* private fields */ }
Implementations§
Source§impl ProfileProviderSynchronousProxy
impl ProfileProviderSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<ProfileProviderEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<ProfileProviderEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn get_profile(
&self,
priority: u32,
name: &str,
___deadline: MonotonicInstant,
) -> Result<(i32, Option<Profile>), Error>
pub fn get_profile( &self, priority: u32, name: &str, ___deadline: MonotonicInstant, ) -> Result<(i32, Option<Profile>), Error>
Obtain a profile handle.
TODO(https://fxbug.dev/42116876): This API will be deprecated and removed in the future, use SetProfileByRole instead.
Sourcepub fn get_deadline_profile(
&self,
capacity: u64,
deadline: u64,
period: u64,
name: &str,
___deadline: MonotonicInstant,
) -> Result<(i32, Option<Profile>), Error>
pub fn get_deadline_profile( &self, capacity: u64, deadline: u64, period: u64, name: &str, ___deadline: MonotonicInstant, ) -> Result<(i32, Option<Profile>), Error>
Obtain a deadline profile handle.
TODO(https://fxbug.dev/42116876): This API will be deprecated and removed in the future, use SetProfileByRole instead.
Sourcepub fn get_cpu_affinity_profile(
&self,
cpu_mask: &CpuSet,
___deadline: MonotonicInstant,
) -> Result<(i32, Option<Profile>), Error>
pub fn get_cpu_affinity_profile( &self, cpu_mask: &CpuSet, ___deadline: MonotonicInstant, ) -> Result<(i32, Option<Profile>), Error>
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.
Sourcepub fn set_profile_by_role(
&self,
handle: Handle,
role: &str,
___deadline: MonotonicInstant,
) -> Result<i32, Error>
pub fn set_profile_by_role( &self, handle: Handle, role: &str, ___deadline: MonotonicInstant, ) -> Result<i32, Error>
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.
Trait Implementations§
Source§impl SynchronousProxy for ProfileProviderSynchronousProxy
impl SynchronousProxy for ProfileProviderSynchronousProxy
Source§type Proxy = ProfileProviderProxy
type Proxy = ProfileProviderProxy
Source§type Protocol = ProfileProviderMarker
type Protocol = ProfileProviderMarker
Proxy
controls.